variablize no_log because we can. also fixed the gitlab pat - there was an uknown issue with the other

This commit is contained in:
Chris Hammer
2022-03-14 01:01:28 -04:00
parent e37cbf3de1
commit 569fb1f150
2 changed files with 12 additions and 9 deletions

View File

@ -53,7 +53,7 @@
- name : "Test #2: Launch the `file_removal_test` job template"
no_log : yes
no_log : "{{ __no_log | default('yes') }}"
uri :
url : "{{ tower_file_remove_url }}"
force_basic_auth : yes
@ -68,7 +68,7 @@
- name : Return job data to originating source
no_log : yes
no_log : "{{ __no_log | default('yes') }}"
uri :
url : "{{ gitlab_commit_url }}"
headers :
@ -112,7 +112,7 @@
- name : "Create missing file on {{ inventory_hostname }}"
#no_log : yes
no_log : "{{ __no_log | default('yes') }}"
uri :
url : "{{ tower_file_creation_url }}"
force_basic_auth : yes
@ -127,7 +127,7 @@
- name : Return job data to originating source
no_log : no
no_log : "{{ __no_log | default('yes') }}"
uri :
url : "{{ gitlab_commit_url }}"
headers :

View File

@ -2,6 +2,9 @@
check_file: /tmp/hello-ansible.txt
__no_log: yes
tower_url : 'https://tower2.thezengarden.net'
tower_user : admin
tower_password : redhat
@ -15,7 +18,7 @@ tower_file_creation_url : "{{ tower_url }}/api/v2/job_templates/\
gitlab_url : 'https://git.thezengarden.net'
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 }}\
/repository/commits"