generated from ethpandaops/template-devnets
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 991 Bytes
/
lint-ansible.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Ansible lint
on:
pull_request:
paths:
- 'ansible/**'
- '.tool-versions'
- '.github/actions/**'
- '.github/workflows/lint-ansible.yaml'
push:
branches:
- master
paths:
- 'ansible/**'
- '.tool-versions'
- '.github/actions/**'
- '.github/workflows/lint-ansible.yaml'
jobs:
ansible-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Install ansible role/collection dependencies
working-directory: ./ansible
run: ./install_dependencies.sh
- name: Lint
working-directory: ./ansible
run: >
ansible-lint playbook.yaml
--nocolor
--exclude vendor
--exclude '*.sops.yaml'
--profile production
--skip-list 'name[play]'
--skip-list 'meta-no-info'
--skip-list 'yaml[line-length]'
--skip-list 'command-instead-of-shell'