From 7434b1846731666c3f70176a104fde2ddfdab63e Mon Sep 17 00:00:00 2001 From: noelmcloughlin Date: Sat, 18 Sep 2021 23:05:11 +0100 Subject: [PATCH] fix(role): corrected the syntax --- .../gelato-ha-uninstaller/scenarios/clean_gelato_ha.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/gelato-ha-uninstaller/scenarios/clean_gelato_ha.yml b/ansible/roles/gelato-ha-uninstaller/scenarios/clean_gelato_ha.yml index cef18826..988acb19 100644 --- a/ansible/roles/gelato-ha-uninstaller/scenarios/clean_gelato_ha.yml +++ b/ansible/roles/gelato-ha-uninstaller/scenarios/clean_gelato_ha.yml @@ -32,9 +32,9 @@ shell: "{{ item }}" become_user: "{{ k8s_user }}" with_items: - - "kubectl patch pvc mongo-0-pv-claim -p '\''{{patch_param }}'\'' --type=merge -n soda-multi-cloud" - - "kubectl patch pvc mongo-1-pv-claim -p '\''{{patch_param }}'\'' --type=merge -n soda-multi-cloud" - - "kubectl patch pvc mongo-2-pv-claim -p '\''{{patch_param }}'\'' --type=merge -n soda-multi-cloud" + - "kubectl patch pvc mongo-0-pv-claim -p '\"{{patch_param }}\"' --type=merge -n soda-multi-cloud" + - "kubectl patch pvc mongo-1-pv-claim -p '\"{{patch_param }}\"' --type=merge -n soda-multi-cloud" + - "kubectl patch pvc mongo-2-pv-claim -p '\"{{patch_param }}\"' --type=merge -n soda-multi-cloud" ignore_errors: yes - name: Pause for 2 seconds @@ -92,6 +92,6 @@ file: state: absent path: "{{ gelato_work_dir }}/multi-cloud/" - ignore_error: yes + ignore_errors: yes become: yes