Add private key
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
22
.drone.yml
22
.drone.yml
@@ -15,14 +15,14 @@ steps:
|
|||||||
- ansible-lint .
|
- ansible-lint .
|
||||||
|
|
||||||
- name: ansible apply
|
- name: ansible apply
|
||||||
image: plugins/ansible:3
|
image: cytopia/ansible:alpine
|
||||||
settings:
|
volumes:
|
||||||
inventory: inventory/hosts.yml
|
- name: ssh-keys
|
||||||
playbook: site.yml
|
path: /root/.ssh/
|
||||||
private_key:
|
commands:
|
||||||
from_secret: ansible_private_key
|
- ansible-playbook -i inventory/hosts site.yml --private-key /root/.ssh/id_ed25519
|
||||||
when:
|
|
||||||
branch:
|
volumes:
|
||||||
- master
|
- name: ssh-keys
|
||||||
event:
|
host:
|
||||||
- push
|
path: /home/ansible/.ssh/
|
||||||
|
Reference in New Issue
Block a user