🤖 Drone ansible plugin
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sivert V. Sæther 2023-02-06 15:32:23 +01:00
parent b3c3dba667
commit 7ba109cce9

View File

@ -5,12 +5,16 @@ name: run updates
steps: steps:
- name: run updates - name: run updates
image: siverten/ansible image: alpine
pull: always
environment: environment:
PASS: PASS:
from_secret: pass from_secret: pass
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
- ansible-playbook site.yml -t update -vvv #- ansible-playbook site.yml -t update -vvv
image: plugins/ansible
environment:
PRIVATE_KEY:
from_secret: key
PLAYBOOK: site.yml