diff --git a/handlers/main.yml b/handlers/main.yml index 63b6cde..7be4b30 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -7,7 +7,7 @@ - name: 'ensure_sudo.service_reload' when: - ansible_facts["system"] == 'Linux' - - ansible_service_mgr == 'systemd' + - ansible_facts["service_mgr"] == 'systemd' - ensure_sudo is defined ansible.builtin.systemd: daemon_reload: 'yes'