17 lines
299 B
YAML
17 lines
299 B
YAML
|
---
|
||
|
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
|
||
|
- ansible-playbook -t update
|
||
|
|