mail-server/ansible/04-secondary-mail.yml
2024-05-28 23:03:37 +03:00

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