Browse Source

Workaround bug with enabling SysV scripts on Jessie.

Carl Meyer 8 years ago
parent
commit
a5f3ec17c1
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      roles/common/tasks/ntp.yml

+ 6
- 2
roles/common/tasks/ntp.yml View File

@@ -11,6 +11,10 @@
11 11
   notify:
12 12
     - restart ntp
13 13
 
14
-- name: Ensure ntpd is running and enabled
15
-  service: name=ntp state=started enabled=yes
14
+- name: Ensure ntpd is running
15
+  service: name=ntp state=started
16 16
 
17
+# Work around https://github.com/ansible/ansible-modules-core/issues/915
18
+# otherwise we'd use enabled=yes in previous task
19
+- name: Ensure ntp is enabled
20
+  command: update-rc.d ntp enable creates=/etc/rc3.d/S03ntp

Loading…
Cancel
Save