ansible-msmtp-mailer/tasks/setup-rocky-9.yml
2023-11-24 18:48:57 +01:00

18 lines
340 B
YAML

---
- name: Fix msmtpd SELinux type context for msmtpd as a service
community.general.sefcontext:
target: '/usr/bin/msmtpd'
setype: bin_t
state: present
- name: Install msmtp
yum:
name:
- msmtp
- s-nail
state: present
notify:
- test mail
- restart msmtpd
when: ansible_os_family == "RedHat"