I feel like I've seen questions like this on the list before, but I'm
having a hard time finding one now; apologies if this is old ground.

I've got a playbook that provisions a new Rackspace Cloud host, and then
includes a role specific to that type of host. In that role, there are
some templates that need to know what groups the host is in. Because the
host didn't exist when our dynamic inventory script was run, it wasn't in
any groups then; but if the dynamic inventory script were run again, it
would be in some new groups now, including some that the script comes up
with -- wait for it -- dynamically.

So: Is there a way to force Ansible to refresh the inventory in the middle
of a playbook?

                                      -Josh ([email protected])



This email is intended for the person(s) to whom it is addressed and may 
contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, 
distribution, copying, or disclosure by any person other than the addressee(s) 
is strictly prohibited. If you have received this email in error, please notify 
the sender immediately by return email and delete the message and any 
attachments from your system.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/21610.28481.985502.993579%40gargle.gargle.HOWL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to