drone/.drone.yml

29 lines
643 B
YAML
Raw Permalink Normal View History

2020-08-24 21:28:02 +00:00
kind: pipeline
name: default
steps:
2020-09-27 18:24:51 +00:00
- name: check ansible syntax
image: paramah/drone-ansible
2020-08-24 21:28:02 +00:00
settings:
2020-09-27 18:24:51 +00:00
playbook: .ansible/playbook.yml
inventory: .ansible/inventory
syntax_check: true
2020-08-24 21:28:02 +00:00
when:
2020-09-27 18:24:51 +00:00
event:
- pull_request
- push
2020-08-24 21:28:02 +00:00
2020-09-27 18:24:51 +00:00
- name: apply ansible playbook
image: paramah/drone-ansible
environment:
ANSIBLE_STRATEGY_PLUGINS: /usr/lib/python3.8/site-packages/ansible_mitogen/plugins/strategy
ANSIBLE_STRATEGY: mitogen_linear
2020-08-24 21:28:02 +00:00
settings:
2020-09-27 18:24:51 +00:00
playbook: .ansible/playbook.yml
inventory: .ansible/inventory
private_key:
from_secret: ansible_private_key
verbose: 1
2020-08-24 21:28:02 +00:00
when:
2020-09-27 18:24:51 +00:00
event:
- tag