2021-06-04 13:56:40 +00:00
|
|
|
---
|
|
|
|
- name: Install nullmailer
|
|
|
|
apt:
|
|
|
|
update_cache: true
|
|
|
|
name:
|
|
|
|
- nullmailer
|
|
|
|
- bsd-mailx
|
|
|
|
register: apt_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_result is succeeded
|
|
|
|
|
|
|
|
- name: Set nullmailer remotes
|
|
|
|
copy:
|
2023-04-09 08:50:47 +00:00
|
|
|
content: "{{ nullmailer.smtp_server }} smtp'\n"
|
2021-06-04 13:56:40 +00:00
|
|
|
dest: /etc/nullmailer/remotes
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: Set nullmailer adminaddr
|
|
|
|
copy:
|
|
|
|
content: "{{ nullmailer.root }}\n"
|
|
|
|
dest: /etc/nullmailer/adminaddr
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: Set nullmailer defaulthost
|
|
|
|
copy:
|
|
|
|
content: "{{ nullmailer.defaulthost }}\n"
|
|
|
|
dest: /etc/nullmailer/defaulthost
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: Set nullmailer allmailfrom
|
|
|
|
copy:
|
|
|
|
content: "{{ nullmailer.allmailfrom }}\n"
|
|
|
|
dest: /etc/nullmailer/allmailfrom
|
|
|
|
mode: 0644
|