diff --git a/group_vars/all/nullmailer.yml b/group_vars/all/nullmailer.yml index 5c63dbc4ec369e8829681169fc40e20044f39d78..48b48c66d599ee55bdab9b2b26acbf23924a54c7 100644 --- a/group_vars/all/nullmailer.yml +++ b/group_vars/all/nullmailer.yml @@ -3,3 +3,4 @@ glob_nullmailer: root: root@crans.org smtp_server: smtp.adm.crans.org defaulthost: crans.org + allmailfrom: root@crans.org diff --git a/roles/nullmailer/tasks/main.yml b/roles/nullmailer/tasks/main.yml index 2d354bba91a37edfb8e9a327966906360f73e6b8..864b2f5a56627d394b4dfafd5a80dce4f6659b36 100644 --- a/roles/nullmailer/tasks/main.yml +++ b/roles/nullmailer/tasks/main.yml @@ -26,3 +26,9 @@ 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