fixed ntp for gcp (don't remove ntp, just disable it
---
-- name: remove ntp package
+- name: ensure chrony and ntp package is installed
yum:
- name: ntp
- state: absent
+ name: "{{ item }}"
+ state: installed
+ with_items:
+ - chrony
+ - ntp
+
+- name:
+ service:
+ name: ntpd
+ state: stopped
+ enabled: no
- name: ensure chrony package is installed
yum:
