ansible/roles/postfix/tasks/main.yml

15 lines
273 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
2021-01-29 01:03:18 +01:00
mode: 0644
2021-01-14 12:15:48 +01:00
notify: Restart postfix service