ansible / terraform-provider-ansible

community terraform provider for ansible
https://registry.terraform.io/providers/ansible/ansible/latest
GNU General Public License v3.0
195 stars 43 forks source link

Add a galaxy role resource #61

Open NefixEstrada opened 1 year ago

NefixEstrada commented 1 year ago

It would be nice to have a resouce that installs roles from ansible-galaxy

So you can define all the roles you need for a playbook and then run that playbook

Thanks :)

khawarizmus commented 3 months ago

@NefixEstrada @abikouo Does it not support playbooks that use roles at the moment? How do we go about executing a playbook that have roles?

NefixEstrada commented 3 months ago

I think it does if the role is installed beforehand.

However, I ended up forking and creatintg my own provider due the lack of this and other features. You can find it here: https://github.com/NefixEstrada/terraform-provider-ansible https://registry.terraform.io/providers/NefixEstrada/ansible/latest/docs/resources/galaxy