From 02bb86a9f2a404b6eb9170ee6e190a577002d187 Mon Sep 17 00:00:00 2001 From: Benjamin Daschel Date: Sun, 8 Jan 2017 15:31:11 -0800 Subject: [PATCH] quote interpolated variables in command --- tasks/xpack/elasticsearch-xpack-install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/xpack/elasticsearch-xpack-install.yml b/tasks/xpack/elasticsearch-xpack-install.yml index 72595b7..88b439f 100644 --- a/tasks/xpack/elasticsearch-xpack-install.yml +++ b/tasks/xpack/elasticsearch-xpack-install.yml @@ -13,7 +13,7 @@ #Remove Plugin if installed and its not been requested or the ES version has changed - name: Remove {{item}} plugin - command: {{es_home}}/bin/plugin remove {{item}} + command: "{{es_home}}/bin/plugin remove {{item}}" register: xpack_state failed_when: "'ERROR' in xpack_state.stdout" changed_when: xpack_state.rc == 0