2023-03-03 19:58:41 +00:00
|
|
|
---
|
2024-06-06 19:48:59 +00:00
|
|
|
- name: Fix msmtpd SELinux type context for msmtpd as a service
|
|
|
|
community.general.sefcontext:
|
|
|
|
target: '/usr/bin/msmtpd'
|
|
|
|
setype: bin_t
|
|
|
|
state: present
|
|
|
|
|
2023-03-03 19:58:41 +00:00
|
|
|
- name: Install msmtp
|
|
|
|
yum:
|
|
|
|
name:
|
|
|
|
- "{{ msmtp_rpm_file }}"
|
|
|
|
- mailx
|
|
|
|
state: present
|
|
|
|
disable_gpg_check: yes
|
|
|
|
notify:
|
|
|
|
- test mail
|
|
|
|
- restart msmtpd
|
|
|
|
when: ansible_os_family == "RedHat"
|