summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml')
-rw-r--r--test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml b/test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml
new file mode 100644
index 0000000..5403ae2
--- /dev/null
+++ b/test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml
@@ -0,0 +1,16 @@
+- hosts: testhost
+ gather_facts: no
+ vars:
+ expected_location: "role: bar"
+ roles:
+ - bar
+ - foo
+ tasks:
+ - name: Use ping from role
+ ping:
+ register: result
+
+ - assert:
+ that:
+ - '"location" in result'
+ - 'result["location"] == "{{ expected_location}}"'