-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsite.yml
46 lines (38 loc) · 838 Bytes
/
site.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
- name: Add AWX requirements
hosts: training-awx
any_errors_fatal: true
become: yes
roles:
- role: davidkarban.repo_epel
tags: epel
- role: VerosK.docker
tags: docker
tasks:
- name: Ensure firewall allow access to awx machine
firewalld:
immediate: true
permanent: true
port: 80/tcp
state: enabled
when: with_firewalld
ignore_errors: yes
- name: Stop httpd
service:
name: 'httpd'
state: stopped
ignore_errors: yes
- name: Add AWX
hosts: training-awx
any_errors_fatal: true
become: yes
roles:
- role: awx
tags: awx
- name: Add nginx when required
hosts: training-awx
any_errors_fatal: true
become: yes
roles:
- role: VerosK.nginx
tags: nginx
when: with_nginx|default(True)