updated the chrony role to install ntp, but disable it as opposed to removing ntp
---
-- name: remove ntp package
+- name: ensure chrony and ntp package is installed
yum:
+ name: "{{ item }}"
+ state: installed
+ with_items:
+ - chrony
+ - ntp
+
+- name:
+ service:
name: ntp
- state: absent
+ state: stopped
+ enabled: no
- name: ensure chrony package is installed
yum:
