ansible/roles/postfix_non_mailhost/tasks/main.yml

18 lines
300 B
YAML
Raw Permalink Normal View History

2021-02-16 02:15:52 +01:00
---
- 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
mode: 0644
owner: root
group: root
2021-02-16 02:15:52 +01:00
notify: restart postfix