Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
463 B

---
# Samba DC need ntpd
- name: Install ntp daemon
yum: name=ntp
when: samba_role is defined and (samba_role == 'dc' or samba_role == 'rodc')
tags: ntp
- name: Install chrony
yum: name=chrony
tags: ntp
- name: Deploy chrony configuration
template: src=chrony.conf.j2 dest=/etc/chrony.conf
notify: restart chrony
tags: ntp
- name: Set daemon names
set_fact: ntp_service='ntpd'
tags: ntp
- set_fact: chrony_service='chronyd'
tags: ntp