[group1]host1[group1:vars]ansible_become_pass={{admin_pass}}
$ ansible group1 -a "echo hello" -e "vars_files=secrets.yml"host1 | FAILED | rc=0 >>the field 'become_pass' has an invalid value, which appears to include a variable that is undefined. The error was: 'admin_pass' is undefined
Copy paste from "man ansible"
-e EXTRA_VARS, --extra-vars='EXTRA_VARS
Extra variables to inject into a playbook, in key=value key=value format
or as quoted YAML/JSON (hashes and arrays). To load variables from a
file, specify the file preceded by @ (e.g. @vars.yml).