13 lines
229 B
YAML
13 lines
229 B
YAML
- hosts: testhost
|
|
gather_facts: no
|
|
roles:
|
|
- foo
|
|
tasks:
|
|
- name: Use ping from role
|
|
ping:
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- '"location" in result'
|
|
- 'result["location"] == "role: foo"'
|