ansible-lint.yml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. ansible-lint:
  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@c37fb7b4bda2c8cb18f4942716bae9f11b0dc9bc
  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/omnia.yml
  27. /github/workspace/control_plane/control_plane.yml
  28. /github/workspace/control_plane/collect_device_info.yml
  29. /github/workspace/control_plane/collect_node_info.yml
  30. /github/workspace/control_plane/ethernet.yml
  31. /github/workspace/control_plane/idrac.yml
  32. /github/workspace/control_plane/infiniband.yml
  33. /github/workspace/control_plane/powervault_me4.yml
  34. /github/workspace/telemetry/telemetry.yml
  35. /github/workspace/platforms/jupyterhub.yml
  36. /github/workspace/platforms/kubeflow.yml
  37. /github/workspace/tools/install_tools.yml
  38. /github/workspace/tools/intel_tools.yml
  39. # [optional]
  40. # Arguments to override a package and its version to be set explicitly.
  41. # Must follow the example syntax.
  42. override-deps: |
  43. ansible==4.10
  44. ansible-lint==5.3.2
  45. # [optional]
  46. # Arguments to be passed to the ansible-lint
  47. # Options:
  48. # -q quieter, although not silent output
  49. # -p parseable output in the format of pep8
  50. # --parseable-severity parseable output including severity of rule
  51. # -r RULESDIR specify one or more rules directories using one or
  52. # more -r arguments. Any -r flags override the default
  53. # rules in ansiblelint/rules, unless -R is also used.
  54. # -R Use default rules in ansiblelint/rules in addition to
  55. # any extra
  56. # rules directories specified with -r. There is no need
  57. # to specify this if no -r flags are used
  58. # -t TAGS only check rules whose id/tags match these values
  59. # -x SKIP_LIST only check rules whose id/tags do not match these
  60. # values
  61. # --nocolor disable colored output
  62. # --exclude=EXCLUDE_PATHS
  63. # path to directories or files to skip. This option is
  64. # repeatable.
  65. # -c C Specify configuration file to use. Defaults to ".ansible-lint"
  66. args: "-x 305"