infrastructure/.drone.yml
Paul Brinkmeier 3f3d619694
All checks were successful
continuous-integration/drone/push Build is passing
Adjust playbooks for check mode
2023-01-27 02:55:53 +01:00

30 lines
769 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:
SSH_KEY:
from_secret: ssh_key
commands:
- pip install ansible==6.4.0 > /dev/null 2> /dev/null
- mkdir "$HOME/.ssh"
- echo "$SSH_KEY" > "$HOME/.ssh/id"
- chmod 0600 ~/.ssh/id
- ssh-keyscan -p 2309 vmd98928.contaboserver.net > "$HOME/.ssh/known_hosts"
- cd ansible
- ansible-playbook --private-key "$HOME/.ssh/id" --check playbooks/misc-all.yaml