order of tasks

This commit is contained in:
Gitouche 2021-07-12 21:40:55 +02:00
parent 74c5ce114b
commit 77e3386097

View file

@ -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"