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