Files
ansible-automations/.drone.yml
Noah Knegt c64a9212f2
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Add private key
Signed-off-by: Noah Knegt <git@noahknegt.com>
2023-03-30 15:47:41 +02:00

29 lines
554 B
YAML

---
kind: pipeline
type: docker
name: ansible
steps:
- name: yaml lint
image: cytopia/yamllint:alpine
commands:
- yamllint -c .yamllint.yml .
- name: ansible lint
image: cytopia/ansible-lint:alpine
commands:
- ansible-lint .
- name: ansible apply
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/