hashicorp / hashicorp/packer

I am unable get the variable details to add my private ansible server details in the provisioner "ansible"

Open
#12,842 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
15.8k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

Hi All,

I am trying to update my packer ansible proviser to append galaxy server details to pull roles and collection from it. but I am not sure where to add my server details

server details:


[galaxy_server.community_repo]
url=https://xxxxxx/api/galaxy/content/community/
token=

provisioner "ansible" {
user = "root"
host_alias = "${var.unique_host_name}"
galaxy_file = "${var.requirements}"
roles_path = "${var.roles_path}"
collections_path = "${var.collections_path}"
ansible_env_vars = [
"ANSIBLE_HOST_KEY_CHECKING=False",
"ANSIBLE_ROLES_PATH=${var.roles_path}",
]
extra_arguments = [
# "-vvvv",
]
playbook_file = "${var.playbook}"
}

where I am referring https://developer.hashicorp.com/packer/integrations/hashicorp/ansible/latest/components/provisioner/ansible unable to find the respective variable

Contributor guide

Open the contributing guide

Research direction

Start with the Ansible provisioner documentation at the linked URL and the shown provisioner configuration, focusing on how Galaxy server settings are passed to Ansible. No source file or test is named; done means documenting whether private Galaxy server details are supported and where the configuration belongs, or clarifying the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
devops
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.