1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| - name: Step 002 Post Infrastructure
| hosts: localhost
| connection: local
| become: false
| tags:
| - step002
| - post_infrastructure
| tasks:
| - name: Job Template to launch a Job Template with update on launch inventory set
| when: tower_run == 'true'
| uri:
| url: "https://{{ ansible_tower_ip }}/api/v1/job_templates/{{ job_template_id }}/launch/"
| method: POST
| user: "{{tower_admin}}"
| password: "{{tower_admin_password}}"
| body:
| extra_vars:
| guid: "{{guid}}"
| ipa_host_password: "{{ipa_host_password}}"
|
| body_format: json
| validate_certs: False
| HEADER_Content-Type: "application/json"
| status_code: 200, 201
|
|