mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-25 22:53:23 +02:00
18 lines
452 B
YAML
18 lines
452 B
YAML
![]() |
---
|
||
|
|
||
|
# If systemd-timesyncd is installed, stop and disable it
|
||
|
- name: Disable systemd-timesyncd
|
||
|
service: name=systemd-timesyncd state=stopped enabled=False
|
||
|
when: systemd_timesyncd.stat.exists
|
||
|
tags: ntp
|
||
|
|
||
|
# If ntpd is installed, stop and disable it
|
||
|
- name: Handle ntpd service
|
||
|
service: name={{ ntp_ntpd_service }} state=stopped enabled=False
|
||
|
when: ntp_unit.stat.exists
|
||
|
tags: ntp
|
||
|
|
||
|
- name: Install Chrony
|
||
|
package: name=chrony
|
||
|
tags: ntp
|