2023-02-06 13:08:28 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: run updates
|
|
|
|
|
|
|
|
steps:
|
2023-02-06 15:43:06 +00:00
|
|
|
- name: run updates
|
|
|
|
image: siverten/ansible
|
2023-02-06 13:08:28 +00:00
|
|
|
environment:
|
2023-02-06 15:49:38 +00:00
|
|
|
ANSIBLE_SSH_PIPELINING: False
|
2023-02-06 13:08:28 +00:00
|
|
|
PASS:
|
|
|
|
from_secret: pass
|
2023-02-06 15:43:06 +00:00
|
|
|
KEY:
|
|
|
|
from_secret: key
|
2023-02-06 13:08:28 +00:00
|
|
|
commands:
|
2023-02-06 13:33:21 +00:00
|
|
|
- sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini
|
2023-02-06 15:43:06 +00:00
|
|
|
- echo "\n[ssh_connection]\nssh_args = -o StrictHostKeyChecking no" >> ansible.cfg
|
2023-02-06 16:16:21 +00:00
|
|
|
- unbuffer -p ansible-playbook -vvv site.yml -t update
|
2023-02-06 13:08:28 +00:00
|
|
|
|