forked from ansible/ansible-lint-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
50 lines (47 loc) · 2.11 KB
/
action.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
name: Ansible Lint
description: Run Ansible Lint
author: The Rocky Linux Project <infrastructure@rockylinux.org>
inputs:
args:
description: |
Arguments to be passed to the ansible-lint
Options:
-q quieter, although not silent output
-p parseable output in the format of pep8
--parseable-severity parseable output including severity of rule
-r RULESDIR specify one or more rules directories using one or
more -r arguments. Any -r flags override the default
rules in ansiblelint/rules, unless -R is also used.
-R Use default rules in ansiblelint/rules in addition to
any extra
rules directories specified with -r. There is no need
to specify this if no -r flags are used
-t TAGS only check rules whose id/tags match these values
-x SKIP_LIST only check rules whose id/tags do not match these
values
--nocolor disable colored output
--exclude=EXCLUDE_PATHS
path to directories or files to skip. This option is
repeatable.
-c C Specify configuration file to use. Defaults to ".ansible-lint"
required: false
targets:
description: |
Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
or valid Ansible directories according to the Ansible role
directory structure.
required: true
override-deps:
default: ''
description: |
override-deps allows pinning pip packages and there versions. This allows to pin to a target
package version in order to maintain consistency with local development.
required: false
runs:
using: docker
image: docker://ghcr.io/rocky-linux/ansible-lint-action:1b7e43618ec45505703147ffe2b1a5f74fd1eeaa
args:
- ${{ inputs.args }}
env:
TARGETS: ${{ inputs.targets }}
OVERRIDE: ${{ inputs.override-deps }}