-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinitialize-foobar.yaml
49 lines (40 loc) · 1.18 KB
/
initialize-foobar.yaml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
- name: Initialize Foobar
hosts: localhost
gather_facts: false
collections:
- awx.awx
module_defaults:
group/awx.awx.controller:
controller_host: "{{ AWX_HOST }}"
controller_username: "{{ AWX_USERNAME }}"
controller_password: "{{ AWX_PASSWORD }}"
tasks:
- name: Create "Deploy DU" workflow
register: result
workflow_job_template:
name: Deploy DU
organization: Default
ask_inventory_on_launch: true
workflow_nodes:
- identifier: Provision
unified_job_template:
type: job_template
name: Provision Cluster
inventory: Chicago Sites # we need a default inventory
related:
success_nodes:
- identifier: Prepare
- identifier: Prepare
unified_job_template:
type: job_template
name: Prepare DU
inventory: Chicago Sites # we need a default inventory
related:
success_nodes:
- identifier: Schedule
- identifier: Schedule
unified_job_template:
type: job_template
name: Schedule DU
inventory: Chicago Sites # we need a default inventory
- debug: var=result