This commit is contained in:
parent
2e2e95f1c1
commit
3ae4a500af
@ -9,11 +9,8 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
PASS:
|
PASS:
|
||||||
from_secret: pass
|
from_secret: pass
|
||||||
KEY:
|
|
||||||
from_secret: key
|
|
||||||
commands:
|
commands:
|
||||||
- sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini
|
- sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini
|
||||||
- echo "$KEY" > id_rsa
|
|
||||||
|
|
||||||
- name: run updates
|
- name: run updates
|
||||||
image: plugins/ansible
|
image: plugins/ansible
|
||||||
@ -21,7 +18,7 @@ steps:
|
|||||||
inventory: servers.ini
|
inventory: servers.ini
|
||||||
playbook: site.yml
|
playbook: site.yml
|
||||||
tags: update
|
tags: update
|
||||||
verbose: 4
|
|
||||||
ssh_common_args: -o "StrictHostKeyChecking no"
|
ssh_common_args: -o "StrictHostKeyChecking no"
|
||||||
private_key: id_rsa
|
private_key:
|
||||||
|
from_secret: key
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user