ansible/roles/postfix-non-mailhost/tasks/main.yml

14 lines
253 B
YAML

---
- 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