2017-11-17 20:32:48 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Disable ntpd
|
2018-12-12 19:23:23 +08:00
|
|
|
failed_when: false
|
2024-02-14 18:14:02 +08:00
|
|
|
ansible.builtin.service:
|
2019-07-11 02:58:58 +08:00
|
|
|
name: '{{ ntp_service_name }}'
|
2018-12-12 19:23:23 +08:00
|
|
|
state: stopped
|
2024-02-14 18:14:02 +08:00
|
|
|
enabled: false
|
2018-12-12 19:23:23 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Disable chronyd
|
2018-12-12 19:23:23 +08:00
|
|
|
failed_when: false
|
2024-02-14 18:14:02 +08:00
|
|
|
ansible.builtin.service:
|
2019-07-11 02:58:58 +08:00
|
|
|
name: '{{ chrony_daemon_name }}'
|
2024-02-14 18:14:02 +08:00
|
|
|
enabled: false
|
2018-12-12 19:23:23 +08:00
|
|
|
state: stopped
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Disable timesyncd
|
2018-12-12 19:23:23 +08:00
|
|
|
failed_when: false
|
2024-02-14 18:14:02 +08:00
|
|
|
ansible.builtin.service:
|
2018-12-12 19:23:23 +08:00
|
|
|
name: timesyncd
|
2024-02-14 18:14:02 +08:00
|
|
|
enabled: false
|
2018-12-12 19:23:23 +08:00
|
|
|
state: stopped
|