Allow using files from the private repo in openshift secrets.
This commit is contained in:
parent
2e0798c818
commit
9c7390a5a4
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,11 @@
|
||||||
when: file is defined
|
when: file is defined
|
||||||
run_once: true
|
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
|
- name: Call `oc secrets new` on the copied file
|
||||||
shell: oc -n {{app}} secrets new {{secret_name}} {{key}}={{tmpfile.path}}
|
shell: oc -n {{app}} secrets new {{secret_name}} {{key}}={{tmpfile.path}}
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue