Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: Noah Knegt <git@noahknegt.com>
29 lines
554 B
YAML
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/
|