drone-test-2/.drone.yml
Chris Hammer b1367f47c4
All checks were successful
continuous-integration/drone/push Build is passing
ECHO ECHo ECho Echo echo ech ec e
2023-12-13 23:49:39 -05:00

47 lines
1.4 KiB
YAML

---
kind: pipeline
type: docker
name: CentOS_9-Ansible-Pipeline
trigger:
branch:
exclude:
- main
event: [push]
steps:
- name: "ansible_environment_setup"
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
commands:
- env
- ls -ltra
- . ./.drone.env
- echo "ANSIBLE_LINT_EXCLUSION -> $ANSIBLE_LINT_EXCLUSION"
- echo "ANSIBLE_INVENTORY -> $ANSIBLE_INVENTORY"
- echo "ANSIBLE_PLAYBOOK -> $ANSIBLE_PLAYBOOK"
# - name: "ansible_environment_verify"
# image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
# commands:
# - git log -1
# - ansible --version
# - ansible-lint --version
# - echo "ANSIBLE_LINT_EXCLUSION -> $ANSIBLE_LINT_EXCLUSION"
# - echo "ANSIBLE_INVENTORY -> $ANSIBLE_INVENTORY"
# - echo "ANSIBLE_PLAYBOOK -> $ANSIBLE_PLAYBOOK"
# - 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 $ANSIBLE_LINT_EXCLUSION
# - name: "ansible_playbook_execution"
# image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
# commands:
# - ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK