more .drone.yml updates
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Chris Hammer 2023-11-17 11:28:29 -05:00
parent 6eed651dc6
commit 353b71d339

View File

@ -17,6 +17,7 @@ steps:
event: event:
- push - push
- name: "Ansible-Galaxy: Install from requirements.yml" - name: "Ansible-Galaxy: Install from requirements.yml"
image: gitea.thezengarden.net/podman/images/ansible-dev:latest image: gitea.thezengarden.net/podman/images/ansible-dev:latest
commands: commands:
@ -28,15 +29,25 @@ steps:
- push - push
- name: "Syntax check / Linting" - name: "Syntax check and Ansible Lint"
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
commands:
- ansible-lint --offline $DRONE_WORKSPACE
- ansible-playbook --syntax-check $DRONE_WORKSPACE/hello.yml
when:
branch:
- development
event:
- push
- name: "Test playbook execution"
image: gitea.thezengarden.net/podman/images/ansible-dev:latest image: gitea.thezengarden.net/podman/images/ansible-dev:latest
environment: environment:
ANSIBLE_INVENTORY: ANSIBLE_INVENTORY:
from_secret: ansible_inventory from_secret: ansible_inventory
commands: commands:
- ansible-lint --offline $DRONE_WORKSPACE
- ansible-playbook -v -i 127.0.0.1, --connection=local $DRONE_WORKSPACE/hello.yml - ansible-playbook -v -i 127.0.0.1, --connection=local $DRONE_WORKSPACE/hello.yml
- echo "Build complete and successful for $DRONE_REPO_NAME"
when: when:
branch: branch:
- development - development