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