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 <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-05-15 21:33:42 +02:00
parent 5ceddcf683
commit 7deedf5d7e

View file

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