Create ansible-lint.yml
avoiding common pitfalls that can easily lead to bugs or make code harder to maintain
This commit is contained in:
parent
d45d30cc3f
commit
2430c14869
19
.github/workflows/ansible-lint.yml
vendored
Normal file
19
.github/workflows/ansible-lint.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
name: Ansible Lint
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Lint Ansible Playbook
|
||||
uses: ansible/ansible-lint-action@master
|
||||
with:
|
||||
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
|
||||
targets: "./"
|
||||
|
||||
args: "-x metadata, formatting"
|
Loading…
Reference in a new issue