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