ansible/.drone.yml

19 lines
396 B
YAML
Raw Normal View History

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:
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
- ansible-playbook site.yml -t update
2023-02-06 13:08:28 +00:00