ansible-lint.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: Ansible Lint # feel free to pick your own name
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. # Important: This sets up your GITHUB_WORKSPACE environment variable
  8. - uses: actions/checkout@v2
  9. - name: ansible-lint
  10. # replace "master" with any valid ref
  11. uses: ansible/ansible-lint-action@v4.1.0.post0
  12. with:
  13. # [required]
  14. # Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
  15. # or valid Ansible directories according to the Ansible role
  16. # directory structure.
  17. # If you want to lint multiple ansible files, use the following syntax
  18. # targets: |
  19. # playbook_1.yml
  20. # playbook_2.yml
  21. targets: ""
  22. # [optional]
  23. # Arguments to override a package and its version to be set explicitly.
  24. # Must follow the example syntax.
  25. override-deps: |
  26. ansible==2.9
  27. ansible-lint==4.2.0
  28. # [optional]
  29. # Arguments to be passed to the ansible-lint
  30. # Options:
  31. # -q quieter, although not silent output
  32. # -p parseable output in the format of pep8
  33. # --parseable-severity parseable output including severity of rule
  34. # -r RULESDIR specify one or more rules directories using one or
  35. # more -r arguments. Any -r flags override the default
  36. # rules in ansiblelint/rules, unless -R is also used.
  37. # -R Use default rules in ansiblelint/rules in addition to
  38. # any extra
  39. # rules directories specified with -r. There is no need
  40. # to specify this if no -r flags are used
  41. # -t TAGS only check rules whose id/tags match these values
  42. # -x SKIP_LIST only check rules whose id/tags do not match these
  43. # values
  44. # --nocolor disable colored output
  45. # --exclude=EXCLUDE_PATHS
  46. # path to directories or files to skip. This option is
  47. # repeatable.
  48. # -c C Specify configuration file to use. Defaults to ".ansible-lint"
  49. args: ""