This commit is contained in:
parent
e0877fd8e4
commit
e40d86dd38
37
.drone.yml
37
.drone.yml
@ -1,17 +1,11 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: CentOS_9-Ansible-Pipeline
|
||||
|
||||
global-variables:
|
||||
ansible_image : &ansible_image "gitea.thezengarden.net/podman/ansible-dev/centos9:release"
|
||||
ansible_inventory : &ansible_inventory "-i 127.0.0.1, --connection=local"
|
||||
ansible_playbook : &ansible_playbook "baseos.yml"
|
||||
|
||||
|
||||
environment:
|
||||
ANSIBLE_IMAGE : "gitea.thezengarden.net/podman/ansible-dev/centos9:release"
|
||||
ANSIBLE_INVENTORY : "-i 127.0.0.1, --connection=local"
|
||||
ANSIBLE_PLAYBOOK : "baseos.yml"
|
||||
ANSIBLE_INVENTORY : *ansible_inventory
|
||||
ANSIBLE_PLAYBOOK : *ansible_playbook
|
||||
|
||||
|
||||
trigger:
|
||||
@ -24,15 +18,22 @@ steps:
|
||||
- name: "ansible_environment_verify"
|
||||
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
|
||||
commands:
|
||||
- echo $ANSIBLE_IMAGE
|
||||
- echo $ANSIBLE_INVENTORY
|
||||
- echo $ANSIBLE_PLAYBOOK
|
||||
- git log -1
|
||||
- ansible --version
|
||||
- ansible-lint --version
|
||||
|
||||
|
||||
- name: "another_ansible_environment_verify"
|
||||
image: *ansible_image
|
||||
- name: "ansible_galaxy_requirements"
|
||||
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
|
||||
commands:
|
||||
- echo $ANSIBLE_IMAGE
|
||||
- echo $ANSIBLE_INVENTORY
|
||||
- echo $ANSIBLE_PLAYBOOK
|
||||
- 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}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user