Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use ansible with Terraspace ? #353

Open
janfickler opened this issue Jul 23, 2024 · 0 comments
Open

How to use ansible with Terraspace ? #353

janfickler opened this issue Jul 23, 2024 · 0 comments

Comments

@janfickler
Copy link

Hi,

i am currently struggle with the integration of Ansible in Terraform using Terraspace.

in a normal terraform project i use the ansible terraform provider for executing ansible roles / collections - https://registry.terraform.io/providers/ansible/ansible/latest/docs

my problem is using terraspace with ansible it seems that the roles which i want to use can´t be found.

Terraspace loads the the complete code into ".terraspacecache", but it seems to be that the within that ansible is then not even more able to find his roles and collections correctly.

i tried that inside a stack without sucess. Then i also tried it to have the ansible config / roles outside the stack in a folder on the toplevel of the terraspace project and dedicated paths to the folders which holding the ansible-roles/collections.

Is there anything what i do wrong ?

or did i have to add the ansible roles / collections to the lib-folder ?

Or is there any other way to use ansible with terraform + terraspace ?

I would be very grateful for help. thx.

kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant