From dd51ef6f96c4787f79484ff9452526f3aa91aa0a Mon Sep 17 00:00:00 2001
From: Bas <bas.meijer@me.com>
Date: Fri, 2 Aug 2024 12:43:54 +0200
Subject: [PATCH] Bugfix/code inspection. (#11384)

- Make ansible-galaxy collection dependencies explicit
- Reorganized requirements.yml
- Adding required collections to galaxy.yml
- Ansible 9.6.0 was yanked on Pypi
- Sync pre-commit requirements with requirements.txt

Signed-off-by: Bas Meijer <bas.meijer@enexis.nl>
---
 .pre-commit-config.yaml | 4 ++--
 galaxy.yml              | 4 ++++
 requirements.txt        | 2 +-
 tests/requirements.yml  | 3 +++
 4 files changed, 10 insertions(+), 3 deletions(-)
 create mode 100644 tests/requirements.yml

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 539fc5ec4..3592fb258 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,10 +39,10 @@ repos:
     hooks:
       - id: ansible-lint
         additional_dependencies:
-          - ansible==9.5.1
+          - ansible==9.8.0
           - jsonschema==4.22.0
           - jmespath==1.0.1
-          - netaddr==1.2.1
+          - netaddr==1.3.0
           - distlib
 
   - repo: https://github.com/golangci/misspell
diff --git a/galaxy.yml b/galaxy.yml
index dcef52496..88ae8e60c 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -15,6 +15,10 @@ license_file: LICENSE
 dependencies:
   ansible.utils: '>=2.5.0'
   community.general: '>=3.0.0'
+  ansible.netcommon: '>=5.3.0'
+  ansible.posix: '>=1.5.4'
+  community.docker: '>=3.11.0'
+  kubernetes.core: '>=2.4.2'
 manifest:
   directives:
     - recursive-exclude tests **
diff --git a/requirements.txt b/requirements.txt
index a30ce90aa..93d2da5c5 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-ansible==9.6.0
+ansible==9.8.0
 # Needed for jinja2 json_query templating
 jmespath==1.0.1
 # Needed for ansible.utils.validate module
diff --git a/tests/requirements.yml b/tests/requirements.yml
new file mode 100644
index 000000000..6eeb070ec
--- /dev/null
+++ b/tests/requirements.yml
@@ -0,0 +1,3 @@
+---
+collections:
+  - name: gluster.gluster
-- 
GitLab