|
|
|
@ -536,6 +536,42 @@
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- awx_config
|
|
|
|
- awx_config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Fetch all job_template ids"
|
|
|
|
|
|
|
|
uri:
|
|
|
|
|
|
|
|
url: "{{ awx_base_url }}/api/v2/job_templates/"
|
|
|
|
|
|
|
|
method: GET
|
|
|
|
|
|
|
|
user: "{{ awx_rest_api_access_user }}"
|
|
|
|
|
|
|
|
password: "{{ awx_rest_api_access_pw }}"
|
|
|
|
|
|
|
|
headers:
|
|
|
|
|
|
|
|
Content-Type: "application/json"
|
|
|
|
|
|
|
|
Accept: "application/json"
|
|
|
|
|
|
|
|
body_format: "json"
|
|
|
|
|
|
|
|
force_basic_auth: true
|
|
|
|
|
|
|
|
validate_certs: false
|
|
|
|
|
|
|
|
status_code: 200
|
|
|
|
|
|
|
|
register: response
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- awx_config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "187 all job templates"
|
|
|
|
|
|
|
|
uri:
|
|
|
|
|
|
|
|
url: "{{ awx_base_url }}{{ item.url }}"
|
|
|
|
|
|
|
|
method: DELETE
|
|
|
|
|
|
|
|
user: "{{ awx_rest_api_access_user }}"
|
|
|
|
|
|
|
|
password: "{{ awx_rest_api_access_pw }}"
|
|
|
|
|
|
|
|
headers:
|
|
|
|
|
|
|
|
Content-Type: "application/json"
|
|
|
|
|
|
|
|
Accept: "application/json"
|
|
|
|
|
|
|
|
body_format: "json"
|
|
|
|
|
|
|
|
force_basic_auth: true
|
|
|
|
|
|
|
|
validate_certs: false
|
|
|
|
|
|
|
|
status_code: 204
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- awx_config
|
|
|
|
|
|
|
|
loop: "{{ response.json.results }}"
|
|
|
|
|
|
|
|
loop_control:
|
|
|
|
|
|
|
|
label: "{{ item.url }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Create job templates"
|
|
|
|
- name: "Create job templates"
|
|
|
|
include_tasks: awx-config-job-template.yml
|
|
|
|
include_tasks: awx-config-job-template.yml
|
|
|
|
loop:
|
|
|
|
loop:
|
|
|
|
|