A tool and python library that helps when interfacing with Ansible directly or as part of another system whether that be through a container image interface, as a standalone tool, or as a Python module that can be imported. The goal is to provide a stable and consistent interface abstraction to Ansible.
Other
957
stars
352
forks
source link
dict provided inventory not read in containerized mode due to incorrect path set #1303
When inventory is provided via a Python
dict
, the output is not written to the correct path in the directory structure. This snippet: https://github.com/ansible/ansible-runner/blob/58b7ff5414d386e266af5e33ba16123ec2ed8f22/src/ansible_runner/utils/__init__.py#L234 writes the content toinventory/hosts.json
while the runner looks for the inventory ininventory/hosts
which is set (for containerized mode) in https://github.com/ansible/ansible-runner/blob/58b7ff5414d386e266af5e33ba16123ec2ed8f22/src/ansible_runner/config/runner.py#L163