You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.4 KiB

Upgrade ansible (#10190) * project: update all dependencies including ansible Upgrade to ansible 7.x and ansible-core 2.14.x. There seems to be issue with ansible 8/ansible-core 2.15 so we remain on those versions for now. It's quite a big bump already anyway. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: install aws galaxy collection Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * ansible-lint: disable various rules after ansible upgrade Temporarily disable a bunch of linting action following ansible upgrade. Those should be taken care of separately. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve deprecated-module ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve no-free-form ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[meta] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[playbook] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[tasks] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-file-permissions ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-shell-pipe ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: remove deprecated warn args Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use fqcn for non builtin tasks Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve syntax-check[missing-file] for contrib playbook Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use arithmetic inside jinja to fix ansible 6 upgrade Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
1 year ago
Upgrade ansible (#10190) * project: update all dependencies including ansible Upgrade to ansible 7.x and ansible-core 2.14.x. There seems to be issue with ansible 8/ansible-core 2.15 so we remain on those versions for now. It's quite a big bump already anyway. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: install aws galaxy collection Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * ansible-lint: disable various rules after ansible upgrade Temporarily disable a bunch of linting action following ansible upgrade. Those should be taken care of separately. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve deprecated-module ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve no-free-form ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[meta] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[playbook] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[tasks] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-file-permissions ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-shell-pipe ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: remove deprecated warn args Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use fqcn for non builtin tasks Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve syntax-check[missing-file] for contrib playbook Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use arithmetic inside jinja to fix ansible 6 upgrade Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
1 year ago
  1. ---
  2. parseable: true
  3. skip_list:
  4. # see https://docs.ansible.com/ansible-lint/rules/default_rules.html for a list of all default rules
  5. # DO NOT add any other rules to this skip_list, instead use local `# noqa` with a comment explaining WHY it is necessary
  6. # These rules are intentionally skipped:
  7. #
  8. # [E204]: "Lines should be no longer than 160 chars"
  9. # This could be re-enabled with a major rewrite in the future.
  10. # For now, there's not enough value gain from strictly limiting line length.
  11. # (Disabled in May 2019)
  12. - '204'
  13. # [E701]: "meta/main.yml should contain relevant info"
  14. # Roles in Kubespray are not intended to be used/imported by Ansible Galaxy.
  15. # While it can be useful to have these metadata available, they are also available in the existing documentation.
  16. # (Disabled in May 2019)
  17. - '701'
  18. # [role-name] "meta/main.yml" Role name role-name does not match ``^+$`` pattern
  19. # Meta roles in Kubespray don't need proper names
  20. # (Disabled in June 2021)
  21. - 'role-name'
  22. - 'experimental'
  23. # [var-naming] "defaults/main.yml" File defines variable 'apiVersion' that violates variable naming standards
  24. # In Kubespray we use variables that use camelCase to match their k8s counterparts
  25. # (Disabled in June 2021)
  26. - 'var-naming'
  27. - 'var-spacing'
  28. # [fqcn-builtins]
  29. # Roles in kubespray don't need fully qualified collection names
  30. # (Disabled in Feb 2023)
  31. - 'fqcn-builtins'
  32. # names should start with an uppercase letter
  33. # (Disabled in June 2023 after ansible upgrade; FIXME)
  34. - 'name[casing]'
  35. # Everything should be named
  36. # (Disabled in June 2023 after ansible upgrade; FIXME)
  37. - 'name[play]'
  38. - 'name[missing]'
  39. # templates should only be at the end of 'name'
  40. # (Disabled in June 2023 after ansible upgrade; FIXME)
  41. - 'name[jinja]'
  42. - 'name[template]'
  43. # order of keys errors
  44. # (Disabled in June 2023 after ansible upgrade; FIXME)
  45. - 'key-order'
  46. # No changed-when on commands
  47. # (Disabled in June 2023 after ansible upgrade; FIXME)
  48. - 'no-changed-when'
  49. # Disable galaxy rules
  50. # (Disabled in June 2023 after ansible upgrade; FIXME)
  51. - 'galaxy'
  52. # Disable run-once check with free strategy
  53. # (Disabled in June 2023 after ansible upgrade; FIXME)
  54. - 'run-once[task]'
  55. # Disable outdated-tag check
  56. # (Disabled in June 2023 after ansible upgrade; FIXME)
  57. - 'warning[outdated-tag]'
  58. exclude_paths:
  59. # Generated files
  60. - tests/files/custom_cni/cilium.yaml
  61. - venv