Some checks failed
continuous-integration/drone Build is failing
Signed-off-by: Noah Knegt <git@noahknegt.com>
29 lines
539 B
YAML
29 lines
539 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: ansible
|
|
|
|
steps:
|
|
- name: yaml lint
|
|
image: cytopia/yamllint:alpine
|
|
commands:
|
|
- yamllint -c .yamllint.yml .
|
|
|
|
- name: ansible lint
|
|
image: cytopia/ansible-lint:alpine
|
|
commands:
|
|
- ansible-lint -c .ansible-lint.yml .
|
|
|
|
- name: ansible apply
|
|
image: plugins/ansible:3
|
|
settings:
|
|
inventory: inventory/hosts.yml
|
|
playbook: site.yml
|
|
private_key:
|
|
from_secret: ansible_private_key
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|