ansible-lint.yml 2.6 KB

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