This commit is contained in:
parent
43718cda07
commit
44307ee0dd
1 changed files with 32 additions and 0 deletions
32
.drone.yml
Normal file
32
.drone.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
|
steps:
|
||||||
|
#- name: Syntax Check
|
||||||
|
# image: plugins/ansible
|
||||||
|
# settings:
|
||||||
|
# become: true
|
||||||
|
# playbook: playbook.yml
|
||||||
|
# inventory: inventory
|
||||||
|
# private_key:
|
||||||
|
# from_secret: drone_ssh_priv
|
||||||
|
# ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||||
|
# requirements: requirements.txt
|
||||||
|
# galaxy: requirements.yml
|
||||||
|
# syntax_check: true
|
||||||
|
# when:
|
||||||
|
# event:
|
||||||
|
# - pull_request
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
image: cytopia/ansible-lint
|
||||||
|
commands:
|
||||||
|
- ansible-lint playbook.yml --force-color
|
||||||
|
# when:
|
||||||
|
# event:
|
||||||
|
# - pull_request
|
||||||
Loading…
Add table
Reference in a new issue