summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/module_precedence/modules_test_multiple_roles.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/module_precedence/modules_test_multiple_roles.yml')
-rw-r--r--test/integration/targets/module_precedence/modules_test_multiple_roles.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/targets/module_precedence/modules_test_multiple_roles.yml b/test/integration/targets/module_precedence/modules_test_multiple_roles.yml
new file mode 100644
index 0000000..f4bd264
--- /dev/null
+++ b/test/integration/targets/module_precedence/modules_test_multiple_roles.yml
@@ -0,0 +1,17 @@
+- hosts: testhost
+ 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}}"'