HostManager utilizes an inventory to execute remote actions on hosts. Certain methods require the operating system (OS) and if it is require use the become ansible option as parameters, which can complicate the creation of new methods within the WazuhHandler class, which will require to handle the os and become values of all the wazuh component.
To address this, it is recommended to eliminate the OS logic from the methods parameters and rely on the OS specified in the provided inventory. This approach simplifies the process of adding new methods to the WazuhHandler class.
Description
HostManager utilizes an inventory to execute remote actions on hosts. Certain methods require the operating system (OS) and if it is require use the become ansible option as parameters, which can complicate the creation of new methods within the WazuhHandler class, which will require to handle the os and become values of all the wazuh component.
To address this, it is recommended to eliminate the OS logic from the methods parameters and rely on the OS specified in the provided inventory. This approach simplifies the process of adding new methods to the WazuhHandler class.