summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/module_precedence/modules_test_multiple_roles.yml
blob: f4bd264957f174e601c32c48bb19eb7bccf0c9e6 (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}}"'