For services put enabled before state
This commit is contained in:
parent
40f5190b3d
commit
a507f524c3
@ -17,8 +17,8 @@
|
|||||||
- name: Enable/start NTP
|
- name: Enable/start NTP
|
||||||
service:
|
service:
|
||||||
name: systemd-timesyncd
|
name: systemd-timesyncd
|
||||||
state: started
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------
|
||||||
# E-mail configuration.
|
# E-mail configuration.
|
||||||
@ -83,8 +83,8 @@
|
|||||||
- name: Enable/restart postfix
|
- name: Enable/restart postfix
|
||||||
service:
|
service:
|
||||||
name: postfix
|
name: postfix
|
||||||
state: restarted
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
when:
|
when:
|
||||||
mail_mailname is changed or
|
mail_mailname is changed or
|
||||||
mail_aliases is changed or
|
mail_aliases is changed or
|
||||||
|
Loading…
Reference in New Issue
Block a user