updated role for debian buster wich dropped ssmtp

This commit is contained in:
nd 2018-10-31 21:42:03 +01:00
parent 92aac47895
commit 98faa5ea81
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
4 changed files with 26 additions and 6 deletions

12
tasks/nullmailer.yml Normal file
View file

@ -0,0 +1,12 @@
- name: install nullmailer
apt: pkg=nullmailer state=latest
- name: setup nullmailer
notify: restart nullmailer
copy:
dest: "{{ item.dest }}"
content: "{{ mail.root }}"
with_items:
- {"dest": "/etc/nullmailer/adminaddr", content: "{{ mail.root }}"}
- {"dest": "/etc/nullmailer/remotes", content: "{{ mail.root }}"}
- {"dest": "/etc/nullmailer/defaultdomain", content: "{{ mail.domain }}"}