mirror of https://github.com/ceph/ceph-ansible.git
ceph-infra: update handler with daemon variable
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 inpull/4239/head9d88d3199
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 commit0ae0193144
)
parent
b87c189299
commit
2d8ed4cc52
|
@ -2,14 +2,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
|
||||
|
||||
|
|
Loading…
Reference in New Issue