quote interpolated variables in command

This commit is contained in:
Benjamin Daschel 2017-01-08 15:31:11 -08:00
parent f8753ff76a
commit 02bb86a9f2

View file

@ -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