mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
18 lines
293 B
YAML
18 lines
293 B
YAML
|
- hosts: localhost
|
||
|
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}}"'
|