forked from NLNOG/ring-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
145 lines (128 loc) · 3.92 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
- hosts: ringnode
tasks:
- include_vars: "vault/ringnode.yml"
tags:
- always
- hosts: infranode
tasks:
- include_vars: "{{ item }}"
with_first_found:
- "vault/{{ inventory_hostname}}.yml"
- "vault/infranode.yml"
tags:
- always
- include: ubuntu_upgrade.yml
when: '"ringnode" in group_names and ansible_distribution_release != "bionic"'
- hosts: all
become: true
become_user: root
roles:
- { role: apt, tags: apt }
- { role: resolving, tags: resolving }
- { role: etcfiles, tags: etcfiles }
- { role: syslog, tags: syslog }
- { role: sysctl, tags: sysctl }
- { role: lang, tags: lang }
- { role: ansible, tags: ansible }
- { role: software, tags: software }
- { role: ntp, tags: ntp }
- { role: motd, tags: motd }
- { role: munin-node, tags: munin-node }
- { role: dhcp, tags: dhcp }
- { role: fail2ban, tags: fail2ban }
- { role: postfix, tags: postfix }
- { role: userscripts, tags: userscripts }
- { role: adminscripts, tags: adminscripts }
- { role: users, class: ring-admins, tags: ring-admins }
- { role: users, class: local, tags: local-users }
- { role: openssh, tags: openssh }
- hosts: ringnode:auth.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: users, class: ring-users, tags: ring-users }
- hosts: ringnode:~staging[0-9]*\.ring\.nlnog\.net
become: true
become_user: root
roles:
- { role: nginx, tags: nginx }
- { role: ring_health, tags: ring_health }
- { role: scamper, tags: scamper }
- { role: ripe-atlas, tags: ripe-atlas }
- { role: ring_sqa, tags: ring_sqa }
- { role: ringfpingd, tags: ringfpingd }
- { role: rpki, tags: rpki, when: ansible_distribution_release == 'bionic'}
- hosts: infranode
become: true
become_user: root
roles:
- { role: backup-client, tags: backup-client }
- hosts: ~container[0-9]*\.infra\.ring\.nlnog.net
become: true
become_user: root
roles:
- { role: container, tags: container }
- hosts: public03.infra.ring.nlnog.net:compute02.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: apache2, tags: apache2 }
- hosts: compute01.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: munin-master, tags: munin-master }
- hosts: compute02.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: kafka, tags: kafka }
- hosts: lg01.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: letsencrypt, tags: letsencrypt }
- { role: apache2, tags: apache2 }
- { role: bird, tags: bird }
- { role: bird-lg, tags: bird-lg }
- { role: users, class: ring-users, user_shell: /usr/local/bin/birdshell, tags: ring-users }
- hosts: public02.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: haproxy, profile: relay, tags: haproxy }
- { role: inframail, tags: inframail }
- hosts: public03.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: letsencrypt, tags: letsencrypt }
- { role: apache2, tags: apache2 }
- { role: pdns-server, tags: pdns-server }
- { role: map, tags: map }
- { role: apt-repository, tags: apt-repository }
- hosts: public04.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: letsencrypt, tags: letsencrypt }
- { role: apache2, tags: apache2 }
- { role: hugo, tags: hugo }
- { role: paster, tags: paster }
- hosts: backup.infra.ring.nlnog.net:storage01.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: backup-server, tags: backup-server }
- hosts: auth.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: ring_auth, tags: ring_auth }
- hosts: dbmaster.infra.ring.nlnog.net
become: true
become_user: root
roles:
- { role: letsencrypt, tags: letsencrypt }
- { role: apache2, tags: apache2 }
- { role: ring_api, tags: ring_api }