52 lines
1007 B
YAML
52 lines
1007 B
YAML
- name: postfix | copy configuration
|
||
template:
|
||
src: main.cf.j2
|
||
dest: /etc/postfix/main.cf
|
||
owner: root
|
||
group: root
|
||
mode: 0644
|
||
notify: restart postfix
|
||
|
||
- name: postfix | create /etc/aliases
|
||
template:
|
||
src: aliases.j2
|
||
dest: /etc/aliases
|
||
owner: root
|
||
group: root
|
||
mode: 0644
|
||
notify: newaliases
|
||
|
||
- name: postfix | create /etc/mailname
|
||
template:
|
||
src: mailname.j2
|
||
dest: /etc/mailname
|
||
owner: root
|
||
group: root
|
||
mode: 0644
|
||
notify: restart postfix
|
||
|
||
- name: postfix | sender relay
|
||
template:
|
||
src: sender_relay.j2
|
||
dest: /etc/postfix/sender_relay
|
||
owner: root
|
||
group: root
|
||
mode: 0644
|
||
notify:
|
||
- postmap sender relay
|
||
- restart postfix
|
||
when: postfix_sender_relay is defined
|
||
|
||
- name: postfix | sasl passwd
|
||
template:
|
||
src: sasl_passwd.j2
|
||
dest: /etc/postfix/sasl_passwd
|
||
owner: root
|
||
group: root
|
||
mode: 0644
|
||
notify:
|
||
- postmap sasl passwd
|
||
- restart postfix
|
||
when: postfix_sasl_passwd is defined
|
||
|