All checks were successful
continuous-integration/drone/push Build is passing
39 lines
981 B
YAML
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
|
|
|