drone-test-2/.drone.yml
Chris Hammer 1ba8a22363
All checks were successful
continuous-integration/drone/push Build is passing
playbook change
2023-12-13 15:37:06 -05:00

39 lines
981 B
YAML

---
kind: pipeline
type: docker
name: CentOS_9-Ansible-Pipeline
environment:
ANSIBLE_INVENTORY : "-i 127.0.0.1, --connection=local"
ANSIBLE_PLAYBOOK : hello.yml
trigger:
branch:
exclude:
- main
event: [push]
steps:
- name: "ansible_environment_verify"
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
commands:
- git log -1
- ansible --version
- ansible-lint --version
- name: "ansible_galaxy_requirements"
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
commands:
- ansible-galaxy install -r requirements.yml
- name: "ansible_lint"
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
commands:
- ansible-lint --offline --exclude collections/ansible_collections
- name: "ansible_playbook_execution"
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
commands:
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK