drone-test-2/.drone.yml
Chris Hammer aacbd91e54
Some checks failed
continuous-integration/drone/push Build is failing
fix vars
2023-12-13 15:36:08 -05:00

39 lines
984 B
YAML

---
kind: pipeline
type: docker
name: CentOS_9-Ansible-Pipeline
environment:
ANSIBLE_INVENTORY : "-i 127.0.0.1, --connection=local"
ANSIBLE_PLAYBOOK : "baseos.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