summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2014-07-26 10:41:23 -0400
committerMichael DeHaan <michael.dehaan@gmail.com>2014-07-26 10:41:23 -0400
commitf814e4e4630c77d2e1854b646d45dfa40b691332 (patch)
treed57ef7a612dee944f279358be0130bebadf82632 /test
parenta1e4f826ca01cc409e5a0a171c68ce9ecf6952f4 (diff)
downloadansible-f814e4e4630c77d2e1854b646d45dfa40b691332.tar.gz
Verify playbook includes can take params.
Diffstat (limited to 'test')
-rw-r--r--test/integration/test_includes.yml2
-rw-r--r--test/integration/test_includes2.yml11
2 files changed, 11 insertions, 2 deletions
diff --git a/test/integration/test_includes.yml b/test/integration/test_includes.yml
index 4061245ec1..5c191b427c 100644
--- a/test/integration/test_includes.yml
+++ b/test/integration/test_includes.yml
@@ -1 +1 @@
-- include: test_includes2.yml
+- include: test_includes2.yml parameter1=asdf parameter2=jkl
diff --git a/test/integration/test_includes2.yml b/test/integration/test_includes2.yml
index 4b538dcb18..9e8331ee18 100644
--- a/test/integration/test_includes2.yml
+++ b/test/integration/test_includes2.yml
@@ -1,5 +1,14 @@
-- hosts: testhost
+- name: verify playbook includes can take parameters
+ hosts: testhost
+ tasks:
+ - assert:
+ that:
+ - "parameter1 == 'asdf'"
+ - "parameter2 == 'jkl'"
+
+- name: verify task include logic
+ hosts: testhost
gather_facts: True
roles:
- { role: test_includes, tags: test_includes }