Move check 'sorted pkgs list to pre-commit'

This is a lint check, which should not live in the playbook itself.
This commit is contained in:
Max Gautier
2025-05-02 11:49:09 +02:00
parent 1b9919547a
commit 87726faab4
2 changed files with 14 additions and 8 deletions

View File

@@ -112,10 +112,3 @@
that: ansible_os_family not in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
msg: "download_run_once not supported for Flatcar Container Linux"
when: download_run_once or download_force_cache
- name: Verify that the packages list is sorted
vars:
pkgs_lists: "{{ pkgs.keys() | list }}"
assert:
that: "pkgs_lists | sort == pkgs_lists"
fail_msg: "pkgs is not sorted: {{ pkgs_lists | ansible.utils.fact_diff(pkgs_lists | sort) }}"