🔭 Drop volumes, use ssh cli options
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
d91c61174a
commit
4c6a223170
13
.drone.yml
13
.drone.yml
@ -6,29 +6,18 @@ name: run updates
|
|||||||
steps:
|
steps:
|
||||||
- name: setup ansible
|
- name: setup ansible
|
||||||
image: alpine
|
image: alpine
|
||||||
volumes:
|
|
||||||
- name: ssh
|
|
||||||
path: /root/.ssh
|
|
||||||
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
|
||||||
- echo "Host *\n\tStrictHostKeyChecking no" > ~/.ssh/ssh_config
|
|
||||||
|
|
||||||
- name: run updates
|
- name: run updates
|
||||||
image: plugins/ansible
|
image: plugins/ansible
|
||||||
settings:
|
settings:
|
||||||
inventory: servers.ini
|
inventory: servers.ini
|
||||||
playbook: site.yml
|
playbook: site.yml
|
||||||
|
ssh_common_args: -o "StrictHostKeyChecking no"
|
||||||
private_key:
|
private_key:
|
||||||
from_secret: key
|
from_secret: key
|
||||||
volumes:
|
|
||||||
- name: ssh
|
|
||||||
path: /root/.ssh
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: ssh
|
|
||||||
temp:
|
|
||||||
medium: memory
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user