Просмотр исходного кода

Workaround bug with enabling SysV scripts on Jessie.

Carl Meyer 8 лет назад
Родитель
Сommit
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

Загрузка…
Отмена
Сохранить