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