forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pre_software.yml
50 lines (43 loc) · 1.02 KB
/
pre_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
44
45
46
47
48
49
50
- name: Step 003 Pre Software
hosts: localhost
gather_facts: false
become: false
tasks:
- debug:
msg: "Step 003 Pre Software"
- import_role:
name: infra-local-create-ssh_key
when: set_env_authorized_key | bool
- name: Configure all hosts with Repositories, Common Files and Set environment key
hosts:
- all:!windows
become: true
gather_facts: False
tags:
- common_tasks
roles:
- role: set-repositories
when: repo_method is defined
- role: common
when: install_common | bool
- role: set_env_authorized_key
when: set_env_authorized_key | bool
- name: Configuring Bastion Hosts
hosts: bastions
become: true
gather_facts: False
roles:
- role: bastion
when: install_bastion | bool
tags:
- bastion_tasks
- name: PreSoftware flight-check
hosts: localhost
connection: local
gather_facts: false
become: false
tags:
- presoftware_flight_check
tasks:
- debug:
msg: "Pre-Software checks completed successfully"