forked from ISTI-ansible-roles/ansible-roles
RH/CentOS: use its own role for ntp.
This commit is contained in:
parent
69c00c4af7
commit
d812967a1e
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
- role: '../../library/roles/ntp'
|
|
@ -71,16 +71,6 @@
|
||||||
when: configure_domain_name_in_interface
|
when: configure_domain_name_in_interface
|
||||||
tags: [ 'centos', 'bootstrap' ]
|
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
|
- name: Stop avahi before removing it when it is not needed
|
||||||
service: name=avahi-daemon state=stopped enabled=no
|
service: name=avahi-daemon state=stopped enabled=no
|
||||||
when: centos_remove_avahi or centos_disable_avahi
|
when: centos_remove_avahi or centos_disable_avahi
|
||||||
|
|
Loading…
Reference in New Issue