ansible/test/integration/targets/module_precedence/modules_test_multiple_roles.yml
Toshio Kuratomi 3428f42120 Add integration test that modules are loaded from the expected locations ()
* Add integration test that modules are loaded from the expected locations
* Fix ping module to pass PEP8
2017-05-01 08:52:25 -07:00

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