hashicorp / packer-plugin-ansible

Packer plugin for Ansible Provisioner
https://www.packer.io/docs/provisioners/ansible
Mozilla Public License 2.0
50 stars 36 forks source link

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

Open AlexanderBurdenko opened 6 months ago

AlexanderBurdenko commented 6 months ago

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"

}

Operating system and Environment details

Ubuntu 20.04 I using github action for build image

vaboston commented 4 months ago

Hello, same behavior here with role_path