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