-
Notifications
You must be signed in to change notification settings - Fork 524
Expand file tree
/
Copy pathsoftware.yml
More file actions
58 lines (51 loc) · 1.42 KB
/
software.yml
File metadata and controls
58 lines (51 loc) · 1.42 KB
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
50
51
52
53
54
55
56
57
58
---
- name: Step 00xxxxx software
hosts: localhost
connection: local
gather_facts: false
become: false
tags:
- step005
- software
tasks:
- name: "Software tasks Started"
ansible.builtin.debug:
msg: "Software tasks Started"
# ----------------------------------------------------------------------
# Software Workloads as role
# ----------------------------------------------------------------------
- name: Import Software workloads
import_playbook: >-
{{ 'workloads.yml' if software_workloads is mapping else 'noop.yml' }}
vars:
_workload_title_: "Software"
_workloads_: "{{ software_workloads }}"
- name: Run host_workloads for software_workloads
any_errors_fatal: true
hosts: all:localhost
gather_facts: false
tags:
- step005
- software
tasks:
- name: Include host_workloads for software
when:
- software_workloads is iterable
- software_workloads is not mapping
- software_workloads is not string
vars:
agnosticd_stage: software
host_workloads: "{{ software_workloads }}"
ansible.builtin.include_role:
name: host_workloads
- name: Software flight-check
hosts: localhost
connection: local
gather_facts: false
become: false
tags:
- post_flight_check
tasks:
- name: "Software checks completed successfully"
ansible.builtin.debug:
msg: "Software checks completed successfully"