This commit is contained in:
parent
55e3b6904c
commit
1b363117be
19
.drone.yml
19
.drone.yml
@ -4,22 +4,15 @@ type: docker
|
|||||||
name: run updates
|
name: run updates
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: setup ansible
|
- name: run updates
|
||||||
image: alpine
|
image: siverten/ansible
|
||||||
environment:
|
environment:
|
||||||
PASS:
|
PASS:
|
||||||
from_secret: pass
|
from_secret: pass
|
||||||
|
KEY:
|
||||||
|
from_secret: key
|
||||||
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
|
||||||
|
- echo "\n[ssh_connection]\nssh_args = -o StrictHostKeyChecking no" >> ansible.cfg
|
||||||
- name: run updates
|
- ansible-playbook site.yml -t update
|
||||||
image: plugins/ansible
|
|
||||||
settings:
|
|
||||||
inventory: servers.ini
|
|
||||||
playbook: site.yml
|
|
||||||
tags: update
|
|
||||||
verbose: 3
|
|
||||||
ssh_common_args: -o "StrictHostKeyChecking no"
|
|
||||||
private_key:
|
|
||||||
from_secret: key
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user