You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
On Sun, Feb 11, 2024 at 8:43 AM san6789 ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#12842>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASFOKMKOTLNMX2DSMCNTPVDYTAZMFAVCNFSM6AAAAABDDGI3CKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDQOBRGA4DIOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
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
The text was updated successfully, but these errors were encountered: