Skip to content
Snippets Groups Projects
Commit eadf1971 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: add NTP-to-ESXi timesync migration for RedHat-based distros

parent f0be10f5
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,21 @@ ...@@ -8,11 +8,21 @@
state: absent state: absent
purge: "{{ true if ansible_os_family == 'Debian' else omit }}" purge: "{{ true if ansible_os_family == 'Debian' else omit }}"
- name: purge chrony package
ansible.builtin.package:
name: "chrony"
state: absent
when: ansible_os_family == 'RedHat'
- name: purge NTP configuration - name: purge NTP configuration
ansible.builtin.file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
state: absent state: absent
loop: loop:
# RedHat
- "/etc/chrony.conf"
- "/etc/chrony.keys"
# Debian
- "/etc/cron.daily/ntp" - "/etc/cron.daily/ntp"
- "/etc/ntp.conf" - "/etc/ntp.conf"
- "/etc/ntpsec/ntp.conf" - "/etc/ntpsec/ntp.conf"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment