Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def find_inventorypath(project_root, required=True):
inventory = _find_inventorypath(project_root)
if required and not inventory:
error_msg("Ansible inventory not found")
return inventory