diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec011eaa9..81a2ebf45 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,16 +35,18 @@ repos: exclude: "^.git" files: "\\.sh$" - - repo: local + - repo: https://github.com/ansible/ansible-lint + rev: v24.5.0 hooks: - id: ansible-lint - name: ansible-lint - entry: ansible-lint -v - language: python - pass_filenames: false additional_dependencies: - - .[community] + - ansible==9.5.1 + - jsonschema==4.22.0 + - jmespath==1.0.1 + - netaddr==1.2.1 + - repo: local + hooks: - id: ansible-syntax-check name: ansible-syntax-check entry: env ANSIBLE_INVENTORY=inventory/local-tests.cfg ANSIBLE_REMOTE_USER=root ANSIBLE_BECOME="true" ANSIBLE_BECOME_USER=root ANSIBLE_VERBOSITY="3" ansible-playbook --syntax-check