diff --git a/ansible.cfg b/ansible.cfg index f3230d5..e233798 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -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] diff --git a/collections/requirements.yml b/collections/requirements.yml index 1ede69f..8d82e15 100644 --- a/collections/requirements.yml +++ b/collections/requirements.yml @@ -2,3 +2,4 @@ collections: - name: redhat_cop.tower_configuration - name: awx.awx + - name: ansible.posix diff --git a/inmem-test.yml b/inmem-test.yml index 18b77f0..bdfd038 100644 --- a/inmem-test.yml +++ b/inmem-test.yml @@ -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: diff --git a/vars/defaults.yml b/vars/defaults.yml new file mode 100644 index 0000000..7d0aecc --- /dev/null +++ b/vars/defaults.yml @@ -0,0 +1,4 @@ +--- +tower_api_host : https://tower2.thezengarden.net +tower_api_user : admin +tower_api_pass : redhat