Преглед изворни кода

Workaround bug with enabling SysV scripts on Jessie.

Carl Meyer пре 8 година
родитељ
комит
a5f3ec17c1
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6
    2
      roles/common/tasks/ntp.yml

+ 6
- 2
roles/common/tasks/ntp.yml Прегледај датотеку

@@ -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…
Откажи
Сачувај