Using ansible-container (version 0.2.0) and trying to pass variables to the playbook (main.yml) using the var_files
directive. No luck. Keep getting:
ansible-container_1 | ERROR! 'var_files' is not a valid attribute for a Play
The main.yml file has this block:
- hosts: all
var_files:
- postgres_vars.yml
Docs seem to suggest this is the right approach.
All suggestions appreciated.
Follow-up: Tried the suggestions listed in the docs and they don't seem to work either.
sudo ansible-container --var-file ./ansible/postgres_vars.yml build --from-scratch
fails with missing variable name error.