This commit is contained in:
parent
cff98db071
commit
ea6e1fea8b
1 changed files with 29 additions and 12 deletions
41
.drone.yml
41
.drone.yml
|
|
@ -7,18 +7,18 @@ trigger:
|
|||
- 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
|
||||
- name: Syntax Check
|
||||
image: plugins/ansible
|
||||
settings:
|
||||
become: true
|
||||
playbook: playbook.yml
|
||||
inventory: hosts
|
||||
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
|
||||
|
|
@ -29,4 +29,21 @@ steps:
|
|||
- ansible-lint playbook.yml --force-color
|
||||
# when:
|
||||
# event:
|
||||
# - pull_request
|
||||
|
||||
- name: Show Diff and Check
|
||||
image: plugins/ansible
|
||||
settings:
|
||||
become: true
|
||||
playbook: playbook.yml
|
||||
inventory: hosts
|
||||
private_key:
|
||||
from_secret: drone_ssh_priv
|
||||
diff: true
|
||||
check: true
|
||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||
requirements: requirements.txt
|
||||
galaxy: requirements.yml
|
||||
# when:
|
||||
# event:
|
||||
# - pull_request
|
||||
Loading…
Add table
Reference in a new issue