moved more to nullmailer
This commit is contained in:
parent
faa6d2ed98
commit
0b75fc3a69
3 changed files with 15 additions and 2 deletions
|
|
@ -1,4 +1,6 @@
|
|||
- include_tasks: ssmtp.yml
|
||||
when: ansible_distribution_release == "stretch"
|
||||
when:
|
||||
- ansible_distribution_release == "stretch"
|
||||
- mail.backend == "ssmtp"
|
||||
- include_tasks: nullmailer.yml
|
||||
when: ansible_distribution_release != "stretch"
|
||||
when: (ansible_distribution_release != "stretch" or mail.backend != "ssmtp")
|
||||
|
|
|
|||
|
|
@ -2,6 +2,16 @@
|
|||
apt:
|
||||
pkg: nullmailer
|
||||
|
||||
- name: remove ssmtp
|
||||
apt:
|
||||
pkg: ssmtp
|
||||
state: absent
|
||||
|
||||
- name: remove ssmtp config
|
||||
file:
|
||||
path: /etc/ssmtp/ssmtp.conf
|
||||
state: absent
|
||||
|
||||
- name: setup nullmailer
|
||||
notify: restart nullmailer
|
||||
copy:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue