forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pre_software.yml
36 lines (33 loc) · 951 Bytes
/
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
# Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }}
- name: Configure all hosts with Repositories, Common Files and Set environment key
hosts:
- all:!windows
become: true
gather_facts: False
roles:
- { role: "set-repositories", when: 'repo_method is defined' }
- { role: "common", when: 'install_common' }
- { role: "set_env_authorized_key", when: 'set_env_authorized_key' }
tags:
- step004
- common_tasks
- name: Configuring Bastion Hosts
hosts: bastions
become: true
roles:
- { role: "bastion", when: 'install_bastion' }
- role: bastion-student-user
when: install_student_user | bool
tags:
- step004
- bastion_tasks
- name: PreSoftware flight-check
hosts: localhost
connection: local
gather_facts: false
become: false
tags:
- flight_check
tasks:
- debug:
msg: "Pre-Software checks completed successfully"