2020-12-12 08:16:44 +00:00
|
|
|
---
|
|
|
|
# https://github.com/ansible/ansible-lint-action
|
|
|
|
name: Ansible Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- '**.yml'
|
|
|
|
- '**.yaml'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ansible-lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 7
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Git checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Add installed collections in Ansible configuration
|
|
|
|
run: |
|
|
|
|
echo '[defaults]' > ansible.cfg
|
|
|
|
echo 'collections_paths = ./collections' >> ansible.cfg
|
|
|
|
|
|
|
|
- name: Install requirements
|
2020-12-12 12:39:37 +00:00
|
|
|
run: ansible-galaxy install -r ansible/playbooks/requirements.yml
|
2020-12-12 08:16:44 +00:00
|
|
|
|
|
|
|
- name: Ansible Lint
|
|
|
|
uses: ansible/ansible-lint-action@master
|
|
|
|
with:
|
|
|
|
args: "--exclude .github"
|