# external2 is loaded from config path.
# external1 is loaded from integration/module_utils/module_utils/..

- name: integration/module_utils/adjacent_to_playbook.yml
  hosts: test-targets
  tasks:

  - custom_python_external_module:
    register: out

  - assert:
      that:
      - out.external1_path == "ansible/integration/module_utils/module_utils/external1.py"
      - out.external2_path == "ansible/lib/module_utils/external2.py"
      fail_msg: |
        out={{ out }}
  tags:
    - adjacent_to_playbook
