Files
ansible-automations/.drone.yml

29 lines
554 B
YAML
Raw Normal View History

---
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/