This commit is contained in:
parent
a900700a1c
commit
c0e107641f
62
.drone.yml
62
.drone.yml
@ -23,44 +23,38 @@ steps:
|
||||
###############################################################################
|
||||
|
||||
|
||||
# - name: "Ansible-Galaxy: Install from requirements.yml"
|
||||
# image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
# commands:
|
||||
# - ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
|
||||
# when:
|
||||
# branch:
|
||||
# - development
|
||||
# event:
|
||||
# exclude:
|
||||
# - pull_request
|
||||
- name: "Ansible-Galaxy: Install from requirements.yml"
|
||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
commands:
|
||||
- ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
event: [push]
|
||||
|
||||
|
||||
# - name: "Syntax check and Ansible Lint"
|
||||
# image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
# commands:
|
||||
# - ansible-lint --offline $DRONE_WORKSPACE
|
||||
# - ansible-playbook --syntax-check $DRONE_WORKSPACE/hello.yml
|
||||
# when:
|
||||
# branch:
|
||||
# - development
|
||||
# event:
|
||||
# exclude:
|
||||
# - pull_request
|
||||
- name: "Syntax check and Ansible Lint"
|
||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
commands:
|
||||
- ansible-lint --offline $DRONE_WORKSPACE
|
||||
- ansible-playbook --syntax-check $DRONE_WORKSPACE/hello.yml
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
event: [push]
|
||||
|
||||
|
||||
# - name: "Test playbook execution"
|
||||
# image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
# environment:
|
||||
# ANSIBLE_INVENTORY:
|
||||
# from_secret: ansible_inventory
|
||||
# commands:
|
||||
# - ansible-playbook -v -i 127.0.0.1, --connection=local $DRONE_WORKSPACE/hello.yml
|
||||
# when:
|
||||
# branch:
|
||||
# - development
|
||||
# event:
|
||||
# exclude:
|
||||
# - pull_request
|
||||
- name: "Test playbook execution"
|
||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
environment:
|
||||
ANSIBLE_INVENTORY:
|
||||
from_secret: ansible_inventory
|
||||
commands:
|
||||
- ansible-playbook -v -i 127.0.0.1, --connection=local $DRONE_WORKSPACE/hello.yml
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
event: [push]
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user