Install libpam-systemd before installing needrestart
[ansible.git] / site.yml
1 # Dependencies are "expressed" by the hosts file, e.g.
2 # ```
3 # [letsencrypt:children]
4 # apache
5 # email
6 # ```
7 # I tried using role dependencies but that doesn't interact well with tags:
8 # When restricting to a tag, its dependencies still get played.
9
10 - hosts: all
11   gather_facts: no
12   pre_tasks:
13   - setup:
14   roles:
15   - base
16   tags: base
17
18 - hosts: unbound
19   gather_facts: no
20   roles:
21   - unbound
22   tags: unbound
23
24 - hosts: letsencrypt
25   gather_facts: no
26   roles:
27   - letsencrypt
28   tags: letsencrypt
29
30 - hosts: email
31   # depends: letsencrypt, unbound
32   gather_facts: no
33   roles:
34   - email
35   tags: email
36
37 - hosts: journalwatch
38   # depends: email
39   gather_facts: no
40   roles:
41   - journalwatch
42   tags: journalwatch
43
44 - hosts: bind
45   gather_facts: no
46   roles:
47   - bind
48   tags: bind
49
50 - hosts: etherpad
51   gather_facts: no
52   roles:
53   - etherpad
54   tags: etherpad
55
56 - hosts: prosody
57   # depends: letsencrypt
58   gather_facts: no
59   pre_tasks:
60   - setup:
61   roles:
62   - prosody
63   tags: prosody
64
65 - hosts: apache
66   # depends: letsencrypt
67   gather_facts: no
68   roles:
69   - apache
70   tags: apache