🤖 Fix ansible CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
7ba109cce9
commit
10ba387d65
14
.drone.yml
14
.drone.yml
@ -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: {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user