]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-infra: update handler with daemon variable
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 10 Jul 2019 18:58:58 +0000 (14:58 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 12 Jul 2019 14:50:04 +0000 (10:50 -0400)
Both ntp and chrony daemon use variable for the service name because it
could be different depending on the GNU/Linux distribution.
This has been update in 9d88d3199 for chrony but only for the start part
not for the handler.
The commit fixes this for both ntp and chrony.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 0ae0193144897676b56e1d4142565e759531fd35)

roles/ceph-infra/handlers/main.yml

index 0478dd054da9ba7eb19724027d5da4df268596b8..31d3d35a9cfd8fac6372c72f8b1f4686cc3d3ea1 100644 (file)
@@ -8,14 +8,14 @@
 - name: disable ntpd
   failed_when: false
   service:
-    name: ntpd
+    name: '{{ ntp_service_name }}'
     state: stopped
     enabled: no
 
 - name: disable chronyd
   failed_when: false
   service:
-    name: chronyd
+    name: '{{ chrony_daemon_name }}'
     enabled: no
     state: stopped