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

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

Open
san6789 opened this issue Feb 11, 2024 · 1 comment
Labels

Comments

@san6789
Copy link

san6789 commented Feb 11, 2024

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

@san6789 san6789 added the bug label Feb 11, 2024
@Ajay389207
Copy link

Ajay389207 commented Feb 11, 2024 via email

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

No branches or pull requests

2 participants