Add ansible playbook check step to CI
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
b4f6538ffe
commit
60a455486c
17
.drone.yml
17
.drone.yml
@ -1,10 +1,25 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: ansible
|
name: Static Verification
|
||||||
steps:
|
steps:
|
||||||
- name: ansible-lint
|
- name: ansible-lint
|
||||||
image: python:3.10.6
|
image: python:3.10.6
|
||||||
commands:
|
commands:
|
||||||
- pip install ansible==6.4.0 ansible-lint==6.4.0 > /dev/null 2> /dev/null
|
- pip install ansible==6.4.0 ansible-lint==6.4.0 > /dev/null 2> /dev/null
|
||||||
- ansible-lint ansible
|
- 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==7.1.0 > /dev/null 2> /dev/null
|
||||||
|
- echo "$KEY" > "$HOME/.ssh/id"
|
||||||
|
- ansible-playbook --check ansible/playbooks/misc-all.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user