diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 6c00125a9749e19abde4c35e26f74628884b2f40..087d24d721560eba4716dd80d1da9ee140f5477b 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -481,7 +481,7 @@ - ntpsec - ntpsec-ntpdate state: present - when: ntp_servers | length > 0 + when: ntp_pools | length > 0 - name: Deploy NTP configuration template: @@ -490,7 +490,7 @@ owner: root group: root mode: 0644 - when: ntp_servers | length > 0 + when: ntp_pools | length > 0 notify: - Restart NTP server