Postfix for non-mailhost #17
1 changed files with 14 additions and 0 deletions
14
roles/postfix-non-mailhost/tasks/main.yml
Normal file
14
roles/postfix-non-mailhost/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Install postfix
|
||||
apt:
|
||||
name: postfix
|
||||
update_cache: true
|
||||
register: result
|
||||
retries: 3
|
||||
until: result is succeeded
|
||||
|
||||
- name: Configure postfix
|
||||
template:
|
||||
src: main.cf.j2
|
||||
dest: /etc/postfix/main.cf
|
||||
notify: restart postfix
|
Loading…
Reference in a new issue