ansible / ansible-runner

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
968 stars 356 forks source link

Validate inventory from CLI early #1307

Closed Shrews closed 1 year ago

Shrews commented 1 year ago

Previous code was validating CLI inventory only when invoking runner with a role to run. This moves the validation earlier and exits if the specified inventory file or directory is not found.

Fixes #1295