ansible-msmtp-mailer/tasks/setup-rocky-8.yml
2023-03-03 20:58:41 +01:00

19 lines
338 B
YAML

---
- name: Ensure group "msmtp" exists
group:
name: msmtp
state: present
when: ansible_os_family == "RedHat"
- 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"