Thanks for answer. But you have had success in using host_vars and group_vars in ansible provisioner at packer script?
пятница, 6 апреля 2018 г., 0:16:28 UTC+3 пользователь Matthieu написал: > > Hi Tony, > > Unfortunately i do work for the company i was working for at the time of > those messages and therefore don't have the json file > > On Thursday, April 5, 2018 at 7:42:36 AM UTC-7, Tony wrote: >> >> Hi, could you please share your full json file. I have the same problem >> and unable to resolv it :( >> >> среда, 25 января 2017 г., 1:39:44 UTC+2 пользователь Matthieu написал: >>> >>> Hello, >>> >>> I am having issues with packer and the remote ansible provisioner. >>> Packer doesnt seems to take the variables in the different groups_vars and >>> in host_vars. Here is the layout of the all project: >>> >>> ansible >>> |------Infrastructure.Analytics # submodule >>> |-------groups_vars >>> |-----all >>> |-----db >>> |-------host_vars >>> >>> |-----packer-postgresql >>> |-------postgresql.yml >>> packer.json >>> >>> >>> the provisioner looks like this: >>> >>> "type": "ansible", >>> "extra_arguments": >>> ["-b","--become-method=sudo","--vault-password-file=~/.vault_pass.txt"], >>> "playbook_file": "ansible/Infrastructure.Analytics/postgresql.yml", >>> "groups": >>> ["all","db","postgresql","development","tag_Application_Service_PostgreSQL","packer-postgresql"], >>> "host_alias": "packer-postgresql" >>> }, >>> >>> How can i make packer use those variables? >>> >>> Cheers >>> >> -- 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/mitchellh/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 packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/03387593-e935-4051-b0f6-f803e6aa112d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.