Fix chrony daemon name for rh derivatives

RH/Centos 7 uses chronyd instead of chrony as service name.

Closes-Bug: 1604042

Change-Id: I69fbba7ea2d7c108f51d36b9fd4ed8cf547c517b
Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
This commit is contained in:
Jean-Philippe Evrard 2016-07-19 15:42:49 +01:00
parent cc01563a1c
commit b5b92c1abe
3 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,7 @@
- name: V-38620 - Synchronize system clock (enable chrony)
service:
name: chrony
name: "{{ chrony_service }}"
state: started
enabled: yes
when: not check_mode

View File

@ -30,3 +30,4 @@ ypserv_pkg: ypserv
# Service names
cron_service: crond
ssh_service: sshd
chrony_service: chronyd

View File

@ -33,3 +33,4 @@ ypserv_pkg: nis
# Service name
cron_service: cron
ssh_service: ssh
chrony_service: chrony