diff --git a/os_builders/roles/vm_baseline/tasks/wazuh.yml b/os_builders/roles/vm_baseline/tasks/wazuh.yml index 47cb34c..8f26fd0 100644 --- a/os_builders/roles/vm_baseline/tasks/wazuh.yml +++ b/os_builders/roles/vm_baseline/tasks/wazuh.yml @@ -125,7 +125,7 @@ become: true ansible.builtin.command: cmd: "systemctl stop wazuh-agent.service" - when: ansible_facts.services["wazuh-agent"].state is "running" + ignore_errors: true - name: Wazuh agent history file: