This commit is contained in:
parent
59bfbf0c2b
commit
31b7fe0acc
18
.drone.yml
18
.drone.yml
@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
global-variables:
|
global-variables:
|
||||||
ansible_image: &ansible_image gitea.thezengarden.net/podman/images/ansible-dev:latest
|
ansible_image: &ansible_image "gitea.thezengarden.net/podman/images/ansible-dev:latest"
|
||||||
|
ansible_inventory: &ansible_inventory "-i 127.0.0.1, --connection=local"
|
||||||
|
ansible_playbook: &ansible_playbook "hello.yml"
|
||||||
|
|
||||||
|
|
||||||
name: run_ansible_tests
|
name: run_ansible_tests
|
||||||
@ -9,22 +11,12 @@ type: docker
|
|||||||
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_INVENTORY : "-i 127.0.0.1, --connection=local"
|
ANSIBLE_INVENTORY : *ansible_inventory
|
||||||
ANSIBLE_PLAYBOOK : hello.yml
|
ANSIBLE_PLAYBOOK : *ansible_playbook
|
||||||
ANSIBLE_DOCKER_IMAGE : *ansible_image
|
ANSIBLE_DOCKER_IMAGE : *ansible_image
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "debug"
|
|
||||||
image: *ansible_image
|
|
||||||
commands:
|
|
||||||
- "echo \"image: $ANSIBLE_DOCKER_IMAGE - inventory: $ANSIBLE_INVENTORY - playbook: $ANSIBLE_PLAYBOOK\""
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- development
|
|
||||||
event: [push]
|
|
||||||
|
|
||||||
|
|
||||||
- name: "ansible_environment_verify"
|
- name: "ansible_environment_verify"
|
||||||
image: *ansible_image
|
image: *ansible_image
|
||||||
commands:
|
commands:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user