Skip to content
Snippets Groups Projects
Unverified Commit 10337f2f authored by Haitian Chen's avatar Haitian Chen Committed by GitHub
Browse files

skip ensuring ntp packages in coreos (#9742)

Check OS when ensuring NTP package and tzdata package.
parent 6c411916
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment