Hello,
I am looking to utilize consul to dynamically update my inventory system for ansible. Here is the scenario:
I am running openstack and using the openstack provisioning features in ansible. The instances get a dynamic ip address. What i need to be able to do is take that ip address and use it to ssh into the newly created node to finish my install. Here is a snip from the playbook. As you can see I am able to completely populate the consul K/V store with the ip address of the new instance.
Question is how can i tell ansible to use that IP to perform its followup tasks. (i.e. sshing to the new instance to run commands)
Thanks,
Mike
`