Skip to content

Commit

Permalink
skip ensuring ntp packages in coreos (kubernetes-sigs#9742)
Browse files Browse the repository at this point in the history
Check OS when ensuring NTP package and tzdata package.
  • Loading branch information
ErthoAers authored Feb 6, 2023
1 parent 6c41191 commit 10337f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/kubernetes/preinstall/tasks/0081-ntp-configurations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 10337f2

Please sign in to comment.