From 9e23c082383bfc176a2ea577a20e044fbf81e185 Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Wed, 23 Sep 2020 23:09:55 +0200 Subject: [PATCH] Make the var load test compatible with old Jinja2 (2.7) Remove the case_sensitive=true parameter to the unique filter, not supported in older Jinja2. Case sensitivity is not necessary here. Fixes #156 --- tests/tests_include_vars_from_parent.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests_include_vars_from_parent.yml b/tests/tests_include_vars_from_parent.yml index e769898d..f9b0030e 100644 --- a/tests/tests_include_vars_from_parent.yml +++ b/tests/tests_include_vars_from_parent.yml @@ -10,7 +10,7 @@ # XXX ugly, self-modifying code - changes the "caller" role on # the controller dest: "{{ playbook_dir }}/roles/caller/vars/{{ item }}.yml" - loop: "{{ varfiles | unique(case_sensitive=true) }}" + loop: "{{ varfiles | unique }}" # In case the playbook is executed against multiple hosts, use # only the first one. Otherwise the hosts would stomp on each # other since they are changing files on the controller.