Running Ansible Tower Jobs After VM Provision


#1

Hello,

Searching on these Forums I can see there are some examples where you can run an Ansible Inside Playbook in CloudForms on a VM once it has been built. Is there a way to run an Ansible Tower playbook as part of the provisioning process instead?

Regards,

G


#2

Yes there is a way, I got started using this
https://pemcg.gitbooks.io/mastering-automation-in-cloudforms-4-2-and-manage/content/creating_an_ansible_tower_service_catalog_item_and_bundle/chapter.html


#3

Thanks for getting back to me. That looks fine, but it’s not compatible with the provisioning process being used. I’m using a Playbook Catalog Item for the provisioning process which can’t be used as a catalog item in a bundle. Is there another approach that can be taken?