fixes for ansible.cfg, inmem-test.yml; add ansible.posix to collection requirements.yml for task profiling

This commit is contained in:
Chris Hammer
2022-02-10 05:25:12 -05:00
parent 1f91d61022
commit 23baba9931
4 changed files with 40 additions and 2 deletions

View File

@ -15,9 +15,10 @@ timeout = 30
host_key_checking = False
display_skipped_hosts = False
interpreter_python = auto_silent
#bin_ansible_callbacks = True
#callbacks_enabled = yaml, timer, profile_tasks
bin_ansible_callbacks = True
callback_whitelist = profile_tasks
deprecation_warnings = False
command_warnings = False
[ssh_connection]

View File

@ -2,3 +2,4 @@
collections:
- name: redhat_cop.tower_configuration
- name: awx.awx
- name: ansible.posix

View File

@ -26,6 +26,10 @@
become: no
vars_files:
- vars/defaults.yml
tasks:
- name: Run file test
block:
@ -52,6 +56,34 @@
- "msg : {{ r_check_file.msg }}"
# - name: Re-create files as needed
# uri:
# url : "{{ tower_api_host }}/api/v2/job_templates/22/launch/"
# method : POST
# status_code : 201
# force_basic_auth : yes
# user : "{{ tower_api_user }}"
# password : "{{ tower_api_pass }}"
# body_format : json
# body:
# trigger: me
- name: Re-create files as needed
uri:
url : "{{ tower_api_host }}/api/v2/job_templates/22/launch/"
method : POST
status_code : 201
force_basic_auth : yes
url_username : "{{ tower_api_user }}"
url_password : "{{ tower_api_pass }}"
body_format : json
return_content : no
validate_certs : no
body:
trigger: me
always:
- name: Job complete
debug:

4
vars/defaults.yml Normal file
View File

@ -0,0 +1,4 @@
---
tower_api_host : https://tower2.thezengarden.net
tower_api_user : admin
tower_api_pass : redhat