For services put enabled before state

This commit is contained in:
Wojciech Kozlowski 2022-08-28 04:00:34 +02:00
parent 40f5190b3d
commit a507f524c3

View File

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