Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running ansible in check mode fails on Linux #1368

Open
nbrys opened this issue Jul 29, 2024 · 1 comment
Open

Running ansible in check mode fails on Linux #1368

nbrys opened this issue Jul 29, 2024 · 1 comment

Comments

@nbrys
Copy link

nbrys commented Jul 29, 2024

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
Copy link
Author

nbrys commented Jul 29, 2024

Add: ignore_errors: '{{ ansible_check_mode }}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant