Add private key
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:
2023-03-30 15:47:41 +02:00
parent a9f072d3d3
commit c64a9212f2

View File

@@ -15,14 +15,14 @@ steps:
- ansible-lint .
- name: ansible apply
image: plugins/ansible:3
settings:
inventory: inventory/hosts.yml
playbook: site.yml
private_key:
from_secret: ansible_private_key
when:
branch:
- master
event:
- push
image: cytopia/ansible:alpine
volumes:
- name: ssh-keys
path: /root/.ssh/
commands:
- ansible-playbook -i inventory/hosts site.yml --private-key /root/.ssh/id_ed25519
volumes:
- name: ssh-keys
host:
path: /home/ansible/.ssh/