forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpost_infra.yml
More file actions
27 lines (25 loc) · 763 Bytes
/
post_infra.yml
File metadata and controls
27 lines (25 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
- name: Step 002 Post Infrastructure
hosts: localhost
connection: local
become: false
gather_facts: false
tags:
- step002
- post_infrastructure
tasks:
- name: Job Template to launch a Job Template with update on launch inventory set
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
when: tower_run == 'true'