ansible/roles/postfix/tasks/main.yml

14 lines
273 B
YAML

---
# Install and configure Postfix
- name: Install Postfix
apt:
name: postfix
update_cache: true # apt update beforehand
- name: Configure Postfix
template:
src: main.cf.j2
dest: /etc/postfix/main.cf
mode: 0644
notify: Restart postfix service