Hi,
I am trying to use ansible-local with packer 1.7.2 and pass in some env vars.
In the documentation it states that ansible_env_vars is an option for ansible-local.
https://www.packer.io/docs/provisioners/ansible/ansible-localI cannot however get it to recognize the option and I get an error ("ansible_env_vars" is not expected here.)
Here is a snippet:
provisioner "ansible-local" {
playbook_file = "..."
playbook_dir = ".."
inventory_file = ".."
group_vars = ".."
host_vars = ".."
ansible_env_vars = ["VAR=${var.var}",
"VAR1=${var.var1}"]
}
Anyone have any idea why this is not working?
Thanks!