I actually tackle this another way. I write provisioning playbooks
(not a role) that will create the server on the provider. And then
when it's finished, run some bootstrapping steps. After that is done,
use add_host to add it to the right group and then include the
role-level playbook.
This way the roles don't need to know anything about provisioning. The
step to provision new servers is a different command and as soon as a
server is provisioned it's handed off to the appropriate roles to get
it configured. And because our inventory is dynamic the new server
will be included in subsequent runs too.
> --
> 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
ansible-proje...@googlegroups.com.
> To post to this group, send email to
ansible...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ansible-project/0c4abae5-44b8-45fc-b825-95d45933d24d%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.