AutomoxAutomox

Need to have Ansible Playbook to deploy Automox agent based on OS - Linux, windows or MacOS

johnfolia1223
February 28, 2024 at 6:11 am UTC

Need to have Ansible Playbook to deploy Automox agent based on OS - Linux, windows or MacOS

 

This discussion is archived and closed to replies. Continue it in the Automox Community Slack.

Discuss on Slack

Replies (1)

jack.smithMarch 1, 2024
#1

Have you tried deploying scripts? https://docs.ansible.com/ansible/latest/collections/ansible/builtin/script_module.html

 

Both Linux and Mac Agent install are one-liners. Windows is a bit more, here is what I’ve used:

 

powershell5 lines
Invoke-WebRequest -Uri 'https://console.automox.com/installers/Automox_Installer-latest.msi' -OutFile C:\windows\temp\automox.msi
Start-Process msiexec -ArgumentList '/I C:\windows\temp\automox.msi ACCESSKEY=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /quiet /qn' -wait
$agentPath = "C:\Program Files (x86)\Automox\amagent.exe"
Start-Process -FilePath $agentPath -ArgumentList "--deregister" | Out-Null
& "C:\Program Files (x86)\Automox\amagent.exe" --setgrp "Default Group/MyGroup"