docstranslation: fix key reading for secrets injection
This commit is contained in:
parent
cc426a90e3
commit
c366454e46
2 changed files with 6 additions and 2 deletions
|
@ -27,11 +27,15 @@
|
|||
openssh_keypair:
|
||||
path: "/etc/openshift_apps/{{ app }}/id_rsa_docs_trans"
|
||||
mode: 0600
|
||||
regenerate: never
|
||||
type: rsa
|
||||
size: 4096
|
||||
register: r_ssh_key
|
||||
|
||||
- name: Retrieve ssh priv key
|
||||
slurp:
|
||||
path: r_ssh_key.filename
|
||||
register: r_docs_priv_key
|
||||
|
||||
- name: Define imagestream
|
||||
include_role:
|
||||
name: openshift/imagestream
|
||||
|
|
|
@ -7,7 +7,7 @@ metadata:
|
|||
app: docstranslation
|
||||
stringData:
|
||||
id_rsa_docs_trans: |-
|
||||
{{ lookup('file', '/etc/openshift_apps/{{ app }}/id_rsa_docs_trans') }}
|
||||
{{ r_docs_priv_key.content | b64decode | indent(4) }}
|
||||
config: |-
|
||||
Host pagure.io
|
||||
User git
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue