diff --git a/tasks/main.yml b/tasks/main.yml index 0348073..a048f33 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,11 +6,13 @@ when: ansible_distribution == "Debian" -- name: set package and service for centos 8 +- name: set package and service for centos 8/9 set_fact: ntp_pkg : chrony ntp_service : chronyd - when: ansible_distribution_major_version == "8" + when: + - (ansible_distribution_major_version == "8" or + ansible_distribution_major_version == "9") - name: install ntp if not present