Closed Drewolf closed 3 years ago
Inventory variables for runner are no different than defining inventory variables in Ansible Core. The host_vars
directory needs to be adjacent to the inventory file.
By default, Runner looks in <private_data_dir>/inventory
for inventory. If it is somewhere else, specify the location:
ansible-runner run --inventory /etc/ansible/hosts ...
To discuss this further, please reach out on IRC #ansible-runner on irc.libera.chat.
I have a playbook that uses variables in the host_vars directory。like this:
so, how to set host_vars with ansible-runner ?