mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 03:23:08 +08:00
docstranslation: fix key reading for secrets injection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user