forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
software.yml
43 lines (39 loc) · 938 Bytes
/
software.yml
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
---
- name: Step 004 Environment specific Software
hosts: localhost
gather_facts: False
become: false
tasks:
- debug:
msg: "Software tasks Started"
- name: Deploy Roles if infra_workloads defined
hosts:
- nodes
gather_facts: false
run_once: false
become: yes
tags:
- infra_workloads
tasks:
- name: apply infra workloads roles on nodes
when:
- infra_workloads|d("")|length > 0
block:
- name: Apply role "{{ workload_loop_var }}" on nodes
include_role:
name: "{{ workload_loop_var }}"
vars:
ACTION: "provision"
loop: "{{ infra_workloads.split(',')|list }}"
loop_control:
loop_var: workload_loop_var
- name: Software flight-check
hosts: localhost
connection: local
gather_facts: false
become: false
tags:
- post_flight_check
tasks:
- debug:
msg: "Software checks completed successfully"