Set main.cf and restart

This commit is contained in:
Philip (a-0) 2023-01-09 14:04:16 +01:00
parent 6f4204ebb0
commit 2a01d753ca
2 changed files with 56 additions and 4 deletions

View file

@ -25,7 +25,12 @@
name: postfix
state: latest
#- name: Set postfix's main.cf
# template:
# src: main.cf.j2
# dest: /etc/postfix/main.cf
- name: Set postfix's main.cf
template:
src: main.cf.j2
dest: /etc/postfix/main.cf
- name: Restart postfix
service:
name: postfix
state: restarted