Hmm, that doesn't seem right. Can you open a bug on the ansible plugin repo? https://github.com/hashicorp/packer-plugin-ansible
On Fri, Jun 25, 2021 at 7:45 AM Eddie Dunn <[email protected]> wrote: > 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-local > > I 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! > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/hashicorp/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/042a0f4d-4b76-4544-a5ea-4cb878ee990cn%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/042a0f4d-4b76-4544-a5ea-4cb878ee990cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAGPV1urbWdKk_0h07uAB7yY2Y7D_QoGr9T8nxaYfp_u09-XcGg%40mail.gmail.com.
