--- # 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