ansible/roles/postfix/tasks/main.yml
2021-02-06 12:46:39 +01:00

13 lines
258 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
notify: Restart postfix service