mirror of
https://github.com/pikami/mail-server.git
synced 2025-01-21 08:11:56 +00:00
26 lines
524 B
YAML
26 lines
524 B
YAML
|
- name: Secondary MX OpenSMTPD Configuration
|
||
|
hosts:
|
||
|
- mx2
|
||
|
remote_user: root
|
||
|
vars_files:
|
||
|
- vars.yml
|
||
|
tasks:
|
||
|
- name: Configure OpenSMTPD smtpd.conf
|
||
|
template:
|
||
|
src: "templates/secondary-smtpd.conf"
|
||
|
dest: /etc/mail/smtpd.conf
|
||
|
notify:
|
||
|
- reload smtpd
|
||
|
|
||
|
- name: Enable and start OpenSMTPD service
|
||
|
service:
|
||
|
name: smtpd
|
||
|
enabled: yes
|
||
|
state: started
|
||
|
|
||
|
handlers:
|
||
|
- name: reload smtpd
|
||
|
service:
|
||
|
name: smtpd
|
||
|
state: restarted
|