diff --git a/roles/common/tasks/ntp.yml b/roles/common/tasks/ntp.yml index db4d5e8..5d6eecc 100644 --- a/roles/common/tasks/ntp.yml +++ b/roles/common/tasks/ntp.yml @@ -14,12 +14,12 @@ - name: Uninstall ntp on modern Ubuntu/Debian apt: name=ntp state=absent update_cache=yes - when: ansible_os_family == 'Debian' and ansible_service_mgr == 'systemd' + when: ansible_service_mgr == 'systemd' tags: packages - name: Install ntp on old Ubuntu/Debian apt: name=ntp state=present update_cache=yes - when: ansible_os_family == 'Debian' and ansible_service_mgr != 'systemd' + when: and ansible_service_mgr != 'systemd' tags: packages # vim: set ts=2 sw=2: