skip ensuring ntp packages in coreos (#9742)
Check OS when ensuring NTP package and tzdata package.pull/9687/head
parent
6c41191646
commit
10337f2fcb
|
@ -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 @@
|
||||||
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:
|
||||||
|
|
Loading…
Reference in New Issue