🤖 Fix ansible CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Sivert V. Sæther 2023-02-06 15:35:49 +01:00
parent 7ba109cce9
commit 10ba387d65

View File

@ -4,17 +4,29 @@ type: docker
name: run updates name: run updates
steps: steps:
- name: run updates - name: setup ansible
image: alpine image: alpine
environment: environment:
PASS: PASS:
from_secret: pass from_secret: pass
volumes:
- name: repo
path: /drone/src
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
- name: run updates
image: plugins/ansible image: plugins/ansible
volumes:
- name: repo
path: /drone/src
environment: environment:
PRIVATE_KEY: PRIVATE_KEY:
from_secret: key from_secret: key
PLAYBOOK: site.yml PLAYBOOK: site.yml
volumes:
- name: repo
temp: {}