Well, normally you start with either already existing hosts that you can list in inventory or a virtualization solution (including clouds) which normally already have a dynamically updated DB with the list of the machines, add_hosts is only in memory because the inventory scripts are not normally 'refreshed' in the middle of a run, the expectation is that the subsequent runs would automatically retrieve the new hosts form the existing 'source of truth'.
In 2.0 we've added `meta: refresh_inventory` that can force the dynamic inventory update in the middle of play. -- Brian Coca -- 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/CAJ5XC8%3DmVkppdH3TWRv%2BJFUe0WoKK4Sq%2BrYuB5kzTUeHzz641Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
