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

When use ansible provisioner, packer can't find role #189

Open
AlexanderBurdenko opened this issue May 7, 2024 · 0 comments
Open

When use ansible provisioner, packer can't find role #189

AlexanderBurdenko opened this issue May 7, 2024 · 0 comments

Comments

@AlexanderBurdenko
Copy link

AlexanderBurdenko commented May 7, 2024

Overview of the Issue

I'm using an ansible provisioner. I install collection and running playbook for install what I need in Temp VM
But sometimes it's crashed, with error that no roles, but like a said roles exist and sometimes it's run correctly
The role '' was not found in collection

Reproduction Steps

Use ansible and install collection and use role

Packer version

1.8.6

Simplified Packer Template

provisioner "ansible" {
extra_arguments = [
"--extra-vars", "token"
]

playbook_file = "playbook,yml"
user = var.ssh_user
use_proxy = false
collection_path = "./.ansible/collections"

}

  • I have added collection_path recently, but it's not solved my error

Operating system and Environment details

Ubuntu 20.04
I using github action for build image

@lbajolet-hashicorp lbajolet-hashicorp transferred this issue from hashicorp/packer May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants