ansible-lint.yml 3.2 KB

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