Skip to content

Commit

Permalink
Ignore errors for stopping wazuh
Browse files Browse the repository at this point in the history
  • Loading branch information
apdibbo committed Sep 23, 2024
1 parent f85f3e4 commit 406d63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_builders/roles/vm_baseline/tasks/wazuh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 406d63a

Please sign in to comment.