blob: 5403ae238c213b446580ea5c4443a677175ea881 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
- hosts: testhost
gather_facts: no
vars:
expected_location: "role: bar"
roles:
- bar
- foo
tasks:
- name: Use ping from role
ping:
register: result
- assert:
that:
- '"location" in result'
- 'result["location"] == "{{ expected_location}}"'
|