mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Allow using files from the private repo in openshift secrets.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user