Przeglądaj źródła

Workaround bug with enabling SysV init scripts in Jessie, for collectd.

Carl Meyer 8 lat temu
rodzic
commit
15cff22f14
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7
    2
      roles/monitoring/tasks/collectd.yml

+ 7
- 2
roles/monitoring/tasks/collectd.yml Wyświetl plik

@@ -5,5 +5,10 @@
5 5
   template: src=etc_collectd_collectd.conf.j2 dest=/etc/collectd/collectd.conf
6 6
   notify: restart collectd
7 7
 
8
-- name: Ensure collectd is a system service
9
-  service: name=collectd state=started enabled=true
8
+- name: Ensure collectd is started
9
+  service: name=collectd state=started
10
+
11
+# Work around https://github.com/ansible/ansible-modules-core/issues/915
12
+# otherwise we'd use enabled=yes in previous task
13
+- name: Ensure collectd is enabled
14
+  command: update-rc.d collectd enable creates=/etc/rc3.d/S03collectd

Ładowanie…
Anuluj
Zapisz