Add SSH key passphrase in kube pipeline

This commit is contained in:
Mangiang 2021-11-01 15:35:09 -04:00
parent 674848f1ca
commit 5dfef566ab
No known key found for this signature in database
GPG Key ID: DAE9B92A692CD55C

View File

@ -48,6 +48,10 @@ steps:
inventory: ./.ansible-items/inventory
galaxy: ./.ansible-items/requirements.yml
syntax_check: true
when:
branch:
- development
- name: apply ansible playbook
image: plugins/ansible:3
settings:
@ -56,6 +60,8 @@ steps:
galaxy: ./.ansible-items/requirements.yml
private_key:
from_secret: deploy_ssh_key
password:
from_secret: deploy_ssh_key_password
environment:
DEPLOY_HOSTNAME:
from_secret: deploy_hostname