wazuh / wazuh-qa

Wazuh - Quality Assurance
GNU General Public License v2.0
60 stars 30 forks source link

DTT2. Validate provision playbook execution and error report #5278

Open mhamra opened 2 weeks ago

mhamra commented 2 weeks ago
Target version Related issue Related PR/dev branch
TBD #5220

The provision module executes Ansible playbooks. If the execution fails, it should return an exit code to inform that something has failed.

For example, investigating issue #5220, we found that the allocation module did not create the manager's virtual machine. The provision module could not execute the playbook, receiving an SSH authentication error, but the script exited without informing errors (exit code > 0).