Allow using files from the private repo in openshift secrets.

This commit is contained in:
Ralph Bean 2017-10-19 00:57:45 +00:00
parent 2e0798c818
commit 9c7390a5a4

View file

@ -13,6 +13,11 @@
when: file is defined
run_once: true
- name: Copy private file {{privatefile}} to temporary file ({{tmpfile.path}})
copy: src={{private}}/files/{{privatefile}} dest={{tmpfile.path}}
when: privatefile is defined
run_once: true
- name: Call `oc secrets new` on the copied file
shell: oc -n {{app}} secrets new {{secret_name}} {{key}}={{tmpfile.path}}
run_once: true