What would be the best method to add reusable provisioning steps to existing roles? I am looking to try and accomplish the following:
- Ideally this could be it's own role, or in some way reusable so I could tie it to any role - It would pull in all the needed parameters from group or host vars - It would only be called if I sent something like ansible-playbook -e "provision=yes", otherwise the role would run as written without provisioning an instance - I would like a way to easily extend this for additional providers (e.g. EC2, VMWare, GCE, etc) I have been able to add provisioning steps into an existing role by using a separate task, but I feel like there is a better and more reusable way to approach this. Please let me know if additional clarification is needed. Thanks. -- 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/0c4abae5-44b8-45fc-b825-95d45933d24d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
