d81ae27a4a
* default collection support * playbooks run from inside a registered collection will set that collection as the first item in the search order (as will all non-collection roles) * this allows easy migration of runme.sh style playbook/role integration tests to collections without the playbooks/roles needing to know the name of their enclosing collection * disable default collection test under Windows * enable collection search for role dependencies * unqualified role deps in collection-hosted roles will first search the containing collection * if the calling role has specified a collections search list in metadata, it will be appended to the search order for unqualified role deps * disable cycle detection unit test * failing on 3.7+, needs proper cycle detection * see #61527
28 lines
805 B
YAML
28 lines
805 B
YAML
- debug:
|
|
msg: executing testrole from legacy playbook-adjacent roles dir
|
|
|
|
- name: exec a FQ module from a legacy role
|
|
testns.testcoll.testmodule:
|
|
register: coll_module_out
|
|
|
|
- name: exec a legacy playbook-adjacent module from a legacy role
|
|
ping:
|
|
register: ping_out
|
|
|
|
- name: sample collections list inside a legacy role (should be empty)
|
|
testns.testcoll.plugin_lookup:
|
|
register: plugin_lookup_out
|
|
|
|
- debug:
|
|
msg: '{{ test_role_input | default("(undefined)") }}'
|
|
register: test_role_output
|
|
|
|
- set_fact:
|
|
testrole_source: legacy roles dir
|
|
|
|
- assert:
|
|
that:
|
|
- coll_module_out.source == 'user'
|
|
# ensure we used the library/ ping override, not the builtin or one from another collection
|
|
- ping_out.source == 'legacy_library_dir'
|
|
- not plugin_lookup_out.collection_list
|