summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-04-30 15:25:53 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-04-30 15:25:53 -0700
commit3ccc2ae2992fad677734dada597e4fa61b00ec27 (patch)
treea9417371b92b5fe85cb7c2a1d1e06e49c2b522b8
parent974731bec0578cb18800c4583954c2ab85404538 (diff)
downloadansible-3ccc2ae2992fad677734dada597e4fa61b00ec27.tar.gz
Fix include test to keep type
-rw-r--r--test/integration/roles/test_includes/tasks/main.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/integration/roles/test_includes/tasks/main.yml b/test/integration/roles/test_includes/tasks/main.yml
index 7cf9283f9a..fb76841fda 100644
--- a/test/integration/roles/test_includes/tasks/main.yml
+++ b/test/integration/roles/test_includes/tasks/main.yml
@@ -26,8 +26,9 @@
- "cb == '2'"
- "cc == '3'"
+# Fact takes precedence over include param as fact is host-specific
- set_fact:
- a: 101
+ a: 101
b: 102
c: 103
@@ -36,6 +37,21 @@
- name: verify variable include params
assert:
that:
+ - "ca == 101"
+ - "cb == 102"
+ - "cc == 103"
+
+# Test that strings are not turned into numbers
+- set_fact:
+ a: "101"
+ b: "102"
+ c: "103"
+
+- include: included_task1.yml a={{a}} b={{b}} c=103
+
+- name: verify variable include params
+ assert:
+ that:
- "ca == '101'"
- "cb == '102'"
- "cc == '103'"