ansible/test/integration/targets/module_precedence/modules_test_multiple_roles.yml

18 lines
293 B
YAML
Raw Normal View History

- 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}}"'