build: Add Github Action to lint Ansible playbooks

Should test all pushes and pull requests
This commit is contained in:
Alex Willmer 2020-04-30 21:33:13 +01:00
parent bcfbb693f3
commit e5111c152e
1 changed files with 21 additions and 0 deletions

21
.github/workflows/ansible-lint.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Ansible Lint
on:
- pull_request
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint Ansible playbooks
# Lastest commit, as of 30 Apr 2020
uses: ansible/ansible-lint-action@6c8c141
with:
targets: |
scripts/ansible/kill_playbook.yml
scripts/ansible/ping_playbook.yml
scripts/ansible/restart_playbook.yml
scripts/ansible/update_playbook.yml