-
Notifications
You must be signed in to change notification settings - Fork 14
/
playbook-list-servers.yaml
44 lines (42 loc) · 1.14 KB
/
playbook-list-servers.yaml
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
---
- name: List Servers
hosts: list_servers
roles:
- role: galaxyproject.general.virtual
# postfix here to get the elastic IP
tags: [general, postfix]
- role: galaxyproject.general.packages
tags: [general, mailman]
- role: galaxyproject.general.paths
tags: [general, mailman]
- role: galaxyproject.general.users
tags: [general, mailman, users]
- role: galaxyproject.opendkim
tags: [postfix, opendkim]
- role: galaxyproject.postfix
tags: postfix
- role: galaxyproject.postgresql
tags: postgres
- role: usegalaxy_org.postgresql_relocate_pgdata
tags: postgres
- role: galaxyproject.postgresql_objects
become: true
become_user: postgres
tags: postgres
- role: galaxyproject.mailman3
tags: mailman
- role: galaxyproject.nginx
tags: nginx
post_tasks:
- name: Add postfix user to opendkim group
user:
name: postfix
groups: opendkim
notify:
- restart postfix
tags: postfix
- name: MX Servers
hosts: mx_servers
roles:
- role: galaxyproject.general.users
tags: [general, mailman]