# external1 and external2 are loaded from config path. - name: integration/module_utils/from_config_path.yml hosts: test-targets any_errors_fatal: true tasks: - custom_python_external_module: register: out - assert: that: - out.external1_path == "ansible/lib/module_utils/external1.py" - out.external2_path == "ansible/lib/module_utils/external2.py" fail_msg: out={{out}}