RH/CentOS: use its own role for ntp.

This commit is contained in:
Andrea Dell'Amico 2019-10-25 11:55:14 +02:00
parent 69c00c4af7
commit d812967a1e
2 changed files with 3 additions and 10 deletions

View File

@ -0,0 +1,3 @@
---
dependencies:
- role: '../../library/roles/ntp'

View File

@ -71,16 +71,6 @@
when: configure_domain_name_in_interface
tags: [ 'centos', 'bootstrap' ]
- name: Ensure that the ntpd service is enabled and running
service: name=ntpd state=started enabled=yes
when: centos_ntpd_enabled
tags: [ 'centos', 'bootstrap', 'ntp' ]
- name: Ensure that the ntpd service is stopped and disabled
service: name=ntpd state=stopped enabled=no
when: not centos_ntpd_enabled
tags: [ 'centos', 'bootstrap', 'ntp' ]
- name: Stop avahi before removing it when it is not needed
service: name=avahi-daemon state=stopped enabled=no
when: centos_remove_avahi or centos_disable_avahi