This commit is contained in:
@@ -9,8 +9,11 @@ steps:
|
||||
environment:
|
||||
PASS:
|
||||
from_secret: pass
|
||||
KEY:
|
||||
from_secret: key
|
||||
commands:
|
||||
- sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini
|
||||
- echo "$KEY" > id_rsa
|
||||
|
||||
- name: run updates
|
||||
image: plugins/ansible
|
||||
@@ -20,6 +23,5 @@ steps:
|
||||
tags: update
|
||||
verbose: 4
|
||||
ssh_common_args: -o "StrictHostKeyChecking no"
|
||||
private_key:
|
||||
from_secret: key
|
||||
private_key: id_rsa
|
||||
|
||||
|
Reference in New Issue
Block a user