more variables, fixes, and formatting
This commit is contained in:
@ -48,8 +48,8 @@
|
|||||||
uri :
|
uri :
|
||||||
url : "{{ tower_file_remove_url }}"
|
url : "{{ tower_file_remove_url }}"
|
||||||
force_basic_auth : yes
|
force_basic_auth : yes
|
||||||
user : admin
|
user : "{{ tower_user }}"
|
||||||
password : redhat
|
password : "{{ tower_password }}"
|
||||||
body_format : json
|
body_format : json
|
||||||
method : POST
|
method : POST
|
||||||
status_code : 201
|
status_code : 201
|
||||||
@ -99,13 +99,18 @@
|
|||||||
msg : "*** EXCEPTION CAUGHT; RUNNING RESCUE TASKS ***"
|
msg : "*** EXCEPTION CAUGHT; RUNNING RESCUE TASKS ***"
|
||||||
|
|
||||||
|
|
||||||
|
- name: debug tower_file_creation_url
|
||||||
|
debug:
|
||||||
|
var: tower_file_creation_url
|
||||||
|
|
||||||
|
|
||||||
- name: "Create missing file on {{ inventory_hostname }}"
|
- name: "Create missing file on {{ inventory_hostname }}"
|
||||||
no_log : yes
|
#no_log : yes
|
||||||
uri:
|
uri:
|
||||||
url : "{{ tower_file_creation_url }}"
|
url : "{{ tower_file_creation_url }}"
|
||||||
force_basic_auth : yes
|
force_basic_auth : yes
|
||||||
user : admin
|
user : "{{ tower_user }}"
|
||||||
password : redhat
|
password : "{{ tower_password }}"
|
||||||
body_format : json
|
body_format : json
|
||||||
method : POST
|
method : POST
|
||||||
status_code : 201
|
status_code : 201
|
||||||
|
@ -3,11 +3,13 @@ check_file: /tmp/hello-ansible.txt
|
|||||||
|
|
||||||
|
|
||||||
tower_url : 'https://tower2.thezengarden.net'
|
tower_url : 'https://tower2.thezengarden.net'
|
||||||
|
tower_user : admin
|
||||||
|
tower_password : redhat
|
||||||
tower_file_removal_template : 23
|
tower_file_removal_template : 23
|
||||||
tower_file_creation_template : 27
|
tower_file_creation_template : 27
|
||||||
tower_file_remove_url : "{{ tower_url }}/api/v2/job_template/ \
|
tower_file_remove_url : "{{ tower_url }}/api/v2/job_templates/\
|
||||||
{{ tower_file_removal_template }}/launch/"
|
{{ tower_file_removal_template }}/launch/"
|
||||||
tower_file_creation_url : "{{ tower_url }}/api/v2/job_template/ \
|
tower_file_creation_url : "{{ tower_url }}/api/v2/job_templates/\
|
||||||
{{ tower_file_creation_template }}/launch/"
|
{{ tower_file_creation_template }}/launch/"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user