order of tasks
This commit is contained in:
parent
74c5ce114b
commit
77e3386097
|
@ -13,12 +13,10 @@
|
|||
mode: 0400
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: enable daemon
|
||||
ansible.builtin.systemd:
|
||||
name: msmtpd
|
||||
enabled: yes
|
||||
masked: no
|
||||
daemon_reload: yes
|
||||
- name: Ensure group "msmtp" exists
|
||||
group:
|
||||
name: msmtp
|
||||
state: present
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Install msmtp
|
||||
|
@ -32,12 +30,6 @@
|
|||
- restart msmtpd
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Ensure group "msmtp" exists
|
||||
group:
|
||||
name: msmtp
|
||||
state: present
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Copy mstprc conf file.
|
||||
template:
|
||||
src: msmtprc.j2
|
||||
|
@ -72,3 +64,11 @@
|
|||
- test mail
|
||||
- restart msmtpd
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: enable daemon
|
||||
ansible.builtin.systemd:
|
||||
name: msmtpd
|
||||
enabled: yes
|
||||
masked: no
|
||||
daemon_reload: yes
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
|
Loading…
Reference in a new issue