From 60a455486c2c3186b875b8c0491b331b4358a46e Mon Sep 17 00:00:00 2001 From: Paul Brinkmeier Date: Fri, 27 Jan 2023 01:35:43 +0100 Subject: [PATCH] Add ansible playbook check step to CI --- .drone.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 486d5f1..376e8cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,25 @@ --- kind: pipeline type: docker -name: ansible +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==7.1.0 > /dev/null 2> /dev/null + - echo "$KEY" > "$HOME/.ssh/id" + - ansible-playbook --check ansible/playbooks/misc-all.yml