summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/playbooks/roles/non_coll_role/tasks/main.yml
blob: 3fab7fe977aac66d9b91ee5f7e18bd548cc90d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- testmodule:
  register: testmodule_out_from_non_coll_role

- embedded_module:
  register: embedded_module_out_from_non_coll_role

- name: check collections list from role meta
  plugin_lookup:
  register: pluginlookup_out

- debug: var=pluginlookup_out

- debug:
    msg: '{{ test_role_input | default("(undefined)") }}'
  register: test_role_output

- assert:
    that:
    - test_role_input is not defined or test_role_input == test_role_output.msg

- vars:
    test_role_input: include another non-coll role
  block:
  - include_role:
      name: non_coll_role_to_call

  - assert:
      that:
        - non_coll_role_to_call_test_role_output.msg == test_role_input