ansible/roles/postfix/tasks/main.yml

14 lines
258 B
YAML
Raw Normal View History

2021-01-14 12:15:48 +01:00
---
# Install and configure Postfix
- name: Install Postfix
apt:
name: postfix
2021-01-14 12:25:23 +01:00
update_cache: true # apt update beforehand
2021-01-14 12:15:48 +01:00
- name: Configure Postfix
template:
src: main.cf.j2
dest: /etc/postfix/main.cf
notify: Restart postfix service