From b894894c7c38938be8d5982e76a4fbac8e6ef7eb Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Mon, 20 Nov 2023 23:01:24 -0500 Subject: [PATCH] add debian 12 for more testing --- .drone.yml | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1618feb..dd48516 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,7 +42,6 @@ steps: - ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK - --- kind: pipeline type: docker @@ -86,6 +85,51 @@ steps: commands: - ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK + +--- +kind: pipeline +type: docker +name: run_ansible_tests_debian12 + +global-variables: + ansible_image : &ansible_image "gitea.thezengarden.net/podman/images/ansible-dev:debian-12" + ansible_inventory : &ansible_inventory "-i 127.0.0.1, --connection=local" + ansible_playbook : &ansible_playbook "hello.yml" + +environment: + ANSIBLE_INVENTORY : *ansible_inventory + ANSIBLE_PLAYBOOK : *ansible_playbook + +trigger: + branch: + exclude: + - main + event: [push] + +steps: + - name: "ansible_environment_verify" + image: *ansible_image + commands: + - git log -1 + - ansible --version + - ansible-lint --version + + - name: "ansible_galaxy_requirements" + image: *ansible_image + commands: + - ansible-galaxy install -r requirements.yml + + - name: "ansible_lint" + image: *ansible_image + commands: + - ansible-lint --offline + + - name: "ansible_playbook_execution" + image: *ansible_image + commands: + - ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK + + # --- # kind: pipeline # type: exec