diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/install_ssmtp/tasks/main.yml | 11 | ||||
-rw-r--r-- | roles/install_ssmtp/templates/ssmtp.conf.j2 | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/roles/install_ssmtp/tasks/main.yml b/roles/install_ssmtp/tasks/main.yml new file mode 100644 index 0000000..2aa2c6e --- /dev/null +++ b/roles/install_ssmtp/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- name: install ssmtp + pacman: + name: ssmtp + state: present + +- name: configure ssmtp + template: + src: ssmtp.conf.j2 + dest: /etc/ssmtp/ssmtp.conf + diff --git a/roles/install_ssmtp/templates/ssmtp.conf.j2 b/roles/install_ssmtp/templates/ssmtp.conf.j2 new file mode 100644 index 0000000..486e047 --- /dev/null +++ b/roles/install_ssmtp/templates/ssmtp.conf.j2 @@ -0,0 +1,6 @@ +root=root=root@niyawe.de +mailhub=mail.niyawe.de:465 +rewriteDomain=niyawe.de +hostname={{ ansible_nodename }} +FromLineOverride=YES +UseTLS=YES |