From 7deedf5d7eea8736959e428e74c7c7a4dbe83f39 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 15 May 2018 21:33:42 +0200 Subject: [PATCH] Actually fail the secret-file role if another one already existed for now This role needs to be fixed to actually apply changes, so whomever sees this gets the fun of fixing this. Signed-off-by: Patrick Uiterwijk --- roles/openshift/secret-file/tasks/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/openshift/secret-file/tasks/main.yml b/roles/openshift/secret-file/tasks/main.yml index 38f91e8eed..efdd4248e1 100644 --- a/roles/openshift/secret-file/tasks/main.yml +++ b/roles/openshift/secret-file/tasks/main.yml @@ -16,5 +16,4 @@ - name: Call `oc secrets new` on the copied file shell: oc -n {{app}} secrets new {{secret_name}} {{key}}=/etc/openshift_apps/{{app}}/{{key}} register: create_out - failed_when: "create_out.rc != 0 and 'AlreadyExists' not in create_out.stderr" when: secret_template.changed or secret_file.changed or secret_privatefile.changed