From 3ccc2ae2992fad677734dada597e4fa61b00ec27 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 30 Apr 2015 15:25:53 -0700 Subject: [PATCH] Fix include test to keep type --- .../roles/test_includes/tasks/main.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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,13 +26,29 @@ - "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 - include: included_task1.yml a={{a}} b={{b}} c=103 +- 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: