From 99296cf5f118772dfbe4e2f353eedfbec8bc075b Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Fri, 31 May 2019 03:00:08 +0200 Subject: [PATCH] openshift: Ensure char in password are not interpreted If password contains ';' (and potentially any shell interpretable chars) it won't be interpreted properly as the openshift password. Signed-off-by: Yanis Guenane --- installer/roles/kubernetes/tasks/openshift_auth.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/roles/kubernetes/tasks/openshift_auth.yml b/installer/roles/kubernetes/tasks/openshift_auth.yml index 6271eddf03..b07d109303 100644 --- a/installer/roles/kubernetes/tasks/openshift_auth.yml +++ b/installer/roles/kubernetes/tasks/openshift_auth.yml @@ -17,7 +17,7 @@ shell: | {{ openshift_oc_bin }} login {{ openshift_host }} \ -u {{ openshift_user }} \ - -p {{ openshift_password }} \ + -p {{ openshift_password | quote }} \ --insecure-skip-tls-verify={{ openshift_skip_tls_verify | default(false) | bool }} when: - openshift_user is defined