wazuh / wazuh-ansible

Wazuh - Ansible playbook
https://wazuh.com
Other
297 stars 191 forks source link

Running ansible in check mode fails on Linux #1368

Open nbrys opened 3 months ago

nbrys commented 3 months ago

When include this module and trying to install the wazuh agent, the ansible run fails when running in check mode.

16:44:27 TASK Linux | Ensure Wazuh Agent service is started and enabled] *** 16:44:27 fatal: [hosta]: FAILED! => {"changed": false, "msg": "Could not find the requested service wazuh-agent: host"}

The ansible code should ignore this because we are running in check mode

nbrys commented 3 months ago

Add: ignore_errors: '{{ ansible_check_mode }}'