When there is a Windows Agent in the infrastructure to be tested, the collect_host_ansible_facts method receives the following response:
{'msg': 'The module setup was redirected to ansible.windows.setup, which could not be loaded.'}
Unfortunately, the failure of methods that utilize collect_host_ansible_facts as a callback occurs because they are not receiving the expected data different than the 'msg'.
Example
When utilizing the inventory.yml provided in the build, the collect_host_os method relies on information from collect_host_ansible_facts. However, since it is not receiving the required information, it returns the following error message:
File "/usr/local/lib/python3.10/dist-packages/wazuh_qa_framework-1.0.0-py3.10.egg/wazuh_qa_framework/system/host_manager.py", line 110, in collect_host_os
return (ansible_facts['ansible_facts']['ansible_distribution'],
KeyError: 'ansible_facts'
Description
When there is a Windows Agent in the infrastructure to be tested, the collect_host_ansible_facts method receives the following response:
{'msg': 'The module setup was redirected to ansible.windows.setup, which could not be loaded.'}
Unfortunately, the failure of methods that utilize collect_host_ansible_facts as a callback occurs because they are not receiving the expected data different than the 'msg'.
Example
When utilizing the inventory.yml provided in the build, the collect_host_os method relies on information from collect_host_ansible_facts. However, since it is not receiving the required information, it returns the following error message: