Skip to main content
Question

Ansible Playbook - Removal of device from console/Uninstall Agent

  • February 13, 2025
  • 1 reply
  • 68 views

Westyy
Forum|alt.badge.img

Hey guys,

 

Been a hot minute since I’ve hit up this community. Hope everyone is well! :)

 

I understand there is a playbook for installation of the agent however I was wondering if over the years, someone has developed the reverse? Just looking to make our VM decommission process a little streamlined. Anyone know if there are any playbooks about that can cover removal of the device in the console and agent removal?

Typically we just nuke the VM so uninstall isn’t really a major requirement but would be good if we could remove the device from the console.

My Google-fu hasn’t had much success in landing any positive hits so figured I would try here.

 

Thanks in advance!

 

Westyy

1 reply

Forum|alt.badge.img
  • Automox Employee
  • 132 replies
  • February 14, 2025

Hi Westyy,

I can’t test this at the moment but in a nutshell you can issue a singular command (or a playbook) containing an offboarding ‘--deregister’ command. This could be a task in ansible (heres our deployment playbook as an example). Either way if you run ‘amagent --deregister’ it will offload it from the console. 

Deregistering it will not uninstall the agent but if you are destroying the VM it would be enough to just get it out of the console automatically first.

Regards,


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings