Browse Source

skip ensuring ntp packages in coreos (#9742)

Check OS when ensuring NTP package and tzdata package.
pull/9687/head
Haitian Chen 1 year ago
committed by GitHub
parent
commit
10337f2fcb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. 5
      roles/kubernetes/preinstall/tasks/0081-ntp-configurations.yml

5
roles/kubernetes/preinstall/tasks/0081-ntp-configurations.yml

@ -4,6 +4,9 @@
name:
- "{{ ntp_package }}"
state: present
when:
- not is_fedora_coreos
- not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
- name: Disable systemd-timesyncd
service:
@ -71,6 +74,8 @@
state: present
when:
- ntp_timezone
- not is_fedora_coreos
- not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
- name: Set timezone
timezone:

Loading…
Cancel
Save