-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplaybook.yml
53 lines (49 loc) · 1.35 KB
/
playbook.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
51
52
53
---
- name: "Deploy Foreman and AWX/Tower Services"
hosts:
- foreman
- webservices
remote_user: root
gather_facts: yes
tasks:
- name: Deploy common, openldap-client, and ceph-fs services
block:
- import_role:
name: common
- import_role:
name: openldap
when: openldap_server_ip is defined and openldap_server_ip != None
- import_role:
name: ceph-fs
- name: Deploy Foreman, AWX/Tower, TFTP and DHCP Services
block:
- import_role:
name: isc_dhcp_server
when: foreman_proxy_dhcp
- import_role:
name: isc_bind_server
when: foreman_proxy_dns
- import_role:
name: tftp
when: foreman_proxy_tftp
- import_role:
name: awx
- import_role:
name: docker
- import_role:
name: awx
tasks_from: container-tasks.yml
- import_role:
name: foreman
- import_role:
name: ansible-project
when: "'foreman' in group_names"
- name: "Configure NGINX reverse-proxy for Foreman and AWX/Tower"
block:
- import_role:
name: nginx
when: "'webservices' in group_names"
- name: Configure Telegraf
block:
- import_role:
name: telegraf