infrastructure/.drone.yml
Paul Brinkmeier 7de9db5de0
Some checks failed
continuous-integration/drone/push Build is failing
Move into ansible directory before running the playbook
2023-01-27 01:44:20 +01:00

28 lines
620 B
YAML

---
kind: pipeline
type: docker
name: Static Verification
steps:
- name: ansible-lint
image: python:3.10.6
commands:
- pip install ansible==6.4.0 ansible-lint==6.4.0 > /dev/null 2> /dev/null
- ansible-lint ansible
---
kind: pipeline
type: docker
name: Check
steps:
- name: ansible-playbook --check
image: python:3.10.6
environment:
KEY:
from_secret: ssh_key
commands:
- pip install ansible==6.4.0 > /dev/null 2> /dev/null
- mkdir "$HOME/.ssh"
- echo "$KEY" > "$HOME/.ssh/id"
- cd ansible
- ansible-playbook --check playbooks/misc-all.yaml