0

I am looking for a way to automate adding IP addresses to my Ansible host file when new Virtual machines are created instead of manually adding/removing them to the hosts file.

I also want to be able to group the IPs by application and environment. These are Azure VMs.

1

There is a script to accomplish this.

$ ./ansible/contrib/inventory/azure_rm.py --help

Dynamic Inventory Script will help you with this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.