From a415392209ece03344913f5ac25725a23944d5b5 Mon Sep 17 00:00:00 2001 From: Johan Guldmyr Date: Mon, 25 Apr 2016 11:46:54 +0300 Subject: [PATCH] quote the variables in with_items - ansible2 --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 55b35e0..fd902f9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,7 +10,7 @@ - name: copy specified bash profile scripts copy: src={{ item }} dest=/etc/profile.d owner=root mode=0644 - with_items: bash_script_copy_these + with_items: "{{ bash_script_copy_these }}" when: bash_script_copy_all == False - name: template FGCI bash profile scripts @@ -27,5 +27,5 @@ - name: copy specified CSC LUA script copy: src={{ item }} dest=/etc/profile.d owner=root mode=0644 - with_items: lua_script_copy_these + with_items: "{{ lua_script_copy_these }}" when: lua_script_copy_all == False and lua_script_copy_these.0 != ""