--- - name: Install Wazuh Agent and Start Service hosts: windows gather_facts: false tasks: - name: Download Wazuh Agent MSI win_shell: | Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.6.0-1.msi -OutFile $env:temp\wazuh-agent args: executable: powershell.exe - name: Install Wazuh Agent win_shell: | msiexec.exe /i $env:temp\wazuh-agent /q WAZUH_MANAGER='wazuh.hagood.us' WAZUH_AGENT_GROUP='Windows,Workstations' WAZUH_REGISTRATION_SERVER='wazuh.hagood.us' args: executable: powershell.exe - name: Start Wazuh Service win_shell: "Start-Service -Name WazuhSvc" args: executable: powershell.exe