This commit is contained in:
parent
59bfbf0c2b
commit
31b7fe0acc
18
.drone.yml
18
.drone.yml
@ -1,6 +1,8 @@
|
||||
---
|
||||
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
|
||||
@ -9,22 +11,12 @@ type: docker
|
||||
|
||||
|
||||
environment:
|
||||
ANSIBLE_INVENTORY : "-i 127.0.0.1, --connection=local"
|
||||
ANSIBLE_PLAYBOOK : hello.yml
|
||||
ANSIBLE_INVENTORY : *ansible_inventory
|
||||
ANSIBLE_PLAYBOOK : *ansible_playbook
|
||||
ANSIBLE_DOCKER_IMAGE : *ansible_image
|
||||
|
||||
|
||||
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"
|
||||
image: *ansible_image
|
||||
commands:
|
||||
|
Loading…
x
Reference in New Issue
Block a user