29 lines
643 B
YAML
29 lines
643 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: check ansible syntax
|
|
image: paramah/drone-ansible
|
|
settings:
|
|
playbook: .ansible/playbook.yml
|
|
inventory: .ansible/inventory
|
|
syntax_check: true
|
|
when:
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
- 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
|
|
settings:
|
|
playbook: .ansible/playbook.yml
|
|
inventory: .ansible/inventory
|
|
private_key:
|
|
from_secret: ansible_private_key
|
|
verbose: 1
|
|
when:
|
|
event:
|
|
- tag |