forked from inofix/common-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-mail.yml
40 lines (34 loc) · 1.01 KB
/
install-mail.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
#* This playbook wrapps the apt (and others maybe in the future..) module
#* to install a mail server package.
#* Note: this playbook should be used either from the main install playbook
#* (which resolves its dependencies) or as a shorthand for an already set up
#* system, where the dependencies are already provided.
#* Use '-a' to pass parameters to ansible (as '-e'). See ansible fetch for
#* details.
#* No arguments are mandatory.
- hosts: app.ssmtp
become: True
vars:
#TODO why is it not forwarded from reclass?
ansible_fqdn: '{{ fqdn }}'
roles:
- install-ssmtp
- hosts: app.exim4
become: True
roles:
- install-exim4
- hosts: app.mailx
become: true
roles:
- inofix.yapkg
vars:
- yapkg__task_group_name: 'simple mail agent'
- yapkg__names:
- 'bsd-mailx'
# not enabling this yet, as it only tracks 'today'
# it is only useful for human communication and needs
# to be combined with something smarter as
# dpkg --get-selections
#- hosts: all
# roles:
# - track-packages