Add integration test that modules are loaded from the expected locations (#24170)

* Add integration test that modules are loaded from the expected locations
* Fix ping module to pass PEP8
This commit is contained in:
Toshio Kuratomi 2017-05-01 08:52:25 -07:00 committed by GitHub
commit 3428f42120
20 changed files with 555 additions and 2 deletions

View file

@ -0,0 +1,10 @@
---
- name: Use ping from inside foo role
ping:
register: result
- name: Make sure that we used the ping module from the foo role
assert:
that:
- '"location" in result'
- 'result["location"] == "{{ expected_location }}"'