summaryrefslogtreecommitdiff
path: root/test/integration/targets/module_precedence/modules_test_multiple_roles.yml
blob: 182c2158e8741deddd72758739c6c7de747705f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- hosts: testhost
  gather_facts: no
  vars:
    expected_location: "role: foo"
  roles:
  - foo
  - bar

  tasks:
  - name: Use ping from role
    ping:
    register: result

  - assert:
      that:
        - '"location" in result'
        - 'result["location"] == expected_location'