variablize no_log because we can. also fixed the gitlab pat - there was an uknown issue with the other
This commit is contained in:
@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name : "Test #2: Launch the `file_removal_test` job template"
|
- name : "Test #2: Launch the `file_removal_test` job template"
|
||||||
no_log : yes
|
no_log : "{{ __no_log | default('yes') }}"
|
||||||
uri :
|
uri :
|
||||||
url : "{{ tower_file_remove_url }}"
|
url : "{{ tower_file_remove_url }}"
|
||||||
force_basic_auth : yes
|
force_basic_auth : yes
|
||||||
@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name : Return job data to originating source
|
- name : Return job data to originating source
|
||||||
no_log : yes
|
no_log : "{{ __no_log | default('yes') }}"
|
||||||
uri :
|
uri :
|
||||||
url : "{{ gitlab_commit_url }}"
|
url : "{{ gitlab_commit_url }}"
|
||||||
headers :
|
headers :
|
||||||
@ -111,9 +111,9 @@
|
|||||||
msg : "*** EXCEPTION CAUGHT; RUNNING RESCUE TASKS ***"
|
msg : "*** EXCEPTION CAUGHT; RUNNING RESCUE TASKS ***"
|
||||||
|
|
||||||
|
|
||||||
- name: "Create missing file on {{ inventory_hostname }}"
|
- name : "Create missing file on {{ inventory_hostname }}"
|
||||||
#no_log : yes
|
no_log : "{{ __no_log | default('yes') }}"
|
||||||
uri:
|
uri :
|
||||||
url : "{{ tower_file_creation_url }}"
|
url : "{{ tower_file_creation_url }}"
|
||||||
force_basic_auth : yes
|
force_basic_auth : yes
|
||||||
user : "{{ tower_user }}"
|
user : "{{ tower_user }}"
|
||||||
@ -126,9 +126,9 @@
|
|||||||
tower_provision_host: "{{ inventory_hostname }}"
|
tower_provision_host: "{{ inventory_hostname }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Return job data to originating source
|
- name : Return job data to originating source
|
||||||
no_log : no
|
no_log : "{{ __no_log | default('yes') }}"
|
||||||
uri:
|
uri :
|
||||||
url : "{{ gitlab_commit_url }}"
|
url : "{{ gitlab_commit_url }}"
|
||||||
headers :
|
headers :
|
||||||
PRIVATE-TOKEN : "{{ gitlab_pat }}"
|
PRIVATE-TOKEN : "{{ gitlab_pat }}"
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
check_file: /tmp/hello-ansible.txt
|
check_file: /tmp/hello-ansible.txt
|
||||||
|
|
||||||
|
|
||||||
|
__no_log: yes
|
||||||
|
|
||||||
|
|
||||||
tower_url : 'https://tower2.thezengarden.net'
|
tower_url : 'https://tower2.thezengarden.net'
|
||||||
tower_user : admin
|
tower_user : admin
|
||||||
tower_password : redhat
|
tower_password : redhat
|
||||||
@ -15,7 +18,7 @@ tower_file_creation_url : "{{ tower_url }}/api/v2/job_templates/\
|
|||||||
|
|
||||||
gitlab_url : 'https://git.thezengarden.net'
|
gitlab_url : 'https://git.thezengarden.net'
|
||||||
gitlab_proj_id : 119
|
gitlab_proj_id : 119
|
||||||
gitlab_pat : "glpat-PG-6dGDyTnt9guvxyhzS"
|
gitlab_pat : "glpat-Cg3ibBo6G39d_QZP9cHe"
|
||||||
gitlab_commit_url : "{{ gitlab_url }}/api/v4/projects/{{ gitlab_proj_id }}\
|
gitlab_commit_url : "{{ gitlab_url }}/api/v4/projects/{{ gitlab_proj_id }}\
|
||||||
/repository/commits"
|
/repository/commits"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user