2023-02-06 13:08:28 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: run updates
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: run updates
|
|
|
|
image: siverten/ansible
|
|
|
|
environment:
|
|
|
|
PASS:
|
|
|
|
from_secret: pass
|
|
|
|
commands:
|
|
|
|
- SERVS=$(cat servers.ini)
|
|
|
|
- echo "[all:vars]\nansible_become_pass = $PASS\n$SERVS" > servers.ini
|
2023-02-06 13:11:54 +00:00
|
|
|
- ansible-playbook site.yml -t update
|
2023-02-06 13:08:28 +00:00
|
|
|
|