Merge pull request #383 from wazuh/add_conditional_md5_check
Add flag to enable/disable Windows MD5 check
This commit is contained in:
commit
596aed68b6
@ -60,6 +60,7 @@ wazuh_winagent_config:
|
|||||||
auth_path: C:\Program Files\ossec-agent\agent-auth.exe
|
auth_path: C:\Program Files\ossec-agent\agent-auth.exe
|
||||||
# Adding quotes to auth_path_x86 since win_shell outputs error otherwise
|
# Adding quotes to auth_path_x86 since win_shell outputs error otherwise
|
||||||
auth_path_x86: C:\'Program Files (x86)'\ossec-agent\agent-auth.exe
|
auth_path_x86: C:\'Program Files (x86)'\ossec-agent\agent-auth.exe
|
||||||
|
check_md5: True
|
||||||
md5: 87ce22038688efb44d95f9daff472056
|
md5: 87ce22038688efb44d95f9daff472056
|
||||||
wazuh_winagent_config_url: https://packages.wazuh.com/3.x/windows/wazuh-agent-3.11.4-1.msi
|
wazuh_winagent_config_url: https://packages.wazuh.com/3.x/windows/wazuh-agent-3.11.4-1.msi
|
||||||
wazuh_winagent_package_name: wazuh-agent-3.11.4-1.msi
|
wazuh_winagent_package_name: wazuh-agent-3.11.4-1.msi
|
||||||
|
|||||||
@ -38,6 +38,8 @@
|
|||||||
register: wazuh_agent_status
|
register: wazuh_agent_status
|
||||||
failed_when:
|
failed_when:
|
||||||
- wazuh_agent_status.stat.checksum != wazuh_winagent_config.md5
|
- wazuh_agent_status.stat.checksum != wazuh_winagent_config.md5
|
||||||
|
when:
|
||||||
|
- wazuh_winagent_config.check_md5
|
||||||
|
|
||||||
- name: Windows | Install Agent if not already installed
|
- name: Windows | Install Agent if not already installed
|
||||||
win_package:
|
win_package:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user