Hi All,
I am using dynamic inventory to get the hosts from azure cloud it works fine as shown below.We need to store those output hosts in static file(/etc/ansible/hosts) is it possible?
# ansible all -m ping -i azure_rm.yml --list
hosts (2):
ansible-inventory-test-vm1_87cf
ansible-inventory-test-vm2_309e
# cat azure_rm.yml
include_vm_resource_groups:
- ansible-inventory-test-rg
auth_source: auto
Regards
Kumaresan