From c30c6ce7332279b4380639eac8f8a7531537dcc8 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 11 Mar 2026 13:11:49 +0100 Subject: [PATCH 01/25] Pin to new Ansible and Python versions --- .github/workflows/test_full_stack.yml | 8 ++++++-- .github/workflows/test_plugins.yml | 4 +++- .github/workflows/test_role_beats.yml | 8 ++++++-- .github/workflows/test_role_elasticsearch.yml | 8 ++++++-- .github/workflows/test_role_kibana.yml | 8 ++++++-- .github/workflows/test_role_logstash.yml | 8 ++++++-- .github/workflows/test_role_repos.yml | 4 ++-- .gitignore | 1 - docs/01-requirements.md | 5 ++++- galaxy.yml | 4 +++- plugins/modules/README.md | 2 +- roles/beats/meta/main.yml | 2 +- roles/elasticsearch/meta/main.yml | 2 +- roles/kibana/meta/main.yml | 2 +- roles/logstash/meta/main.yml | 2 +- roles/repos/meta/main.yml | 2 +- 16 files changed, 48 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test_full_stack.yml b/.github/workflows/test_full_stack.yml index 41644b74..bac49138 100644 --- a/.github/workflows/test_full_stack.yml +++ b/.github/workflows/test_full_stack.yml @@ -46,19 +46,23 @@ jobs: release: - 7 - 8 + ansible_version: + - "2.14" + - "2.20" steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | python3 -m pip install --upgrade pip + python3 -m pip install ansible==${{ matrix.ansible_version }} python3 -m pip install -r requirements-test.txt - name: Install collection diff --git a/.github/workflows/test_plugins.yml b/.github/workflows/test_plugins.yml index 743f9600..d2e2ebdc 100644 --- a/.github/workflows/test_plugins.yml +++ b/.github/workflows/test_plugins.yml @@ -139,7 +139,9 @@ jobs: strategy: fail-fast: false matrix: - ansible_core_version: [ 2.11.12, 2.12.10, 2.13.8, 2.14.4 ] + ansible_core_version: + - 2.14 + - 2.20 steps: - name: Check out code diff --git a/.github/workflows/test_role_beats.yml b/.github/workflows/test_role_beats.yml index 8524c87e..ee113eca 100644 --- a/.github/workflows/test_role_beats.yml +++ b/.github/workflows/test_role_beats.yml @@ -42,19 +42,23 @@ jobs: distro: [ubuntu2204] scenario: [beats_default, beats_peculiar] release: [ 7, 8 ] + ansible_version: + - "2.14" + - "2.20" steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | python3 -m pip install --upgrade pip + python3 -m pip install ansible==${{ matrix.ansible_version }} python3 -m pip install -r requirements-test.txt - name: Install collection diff --git a/.github/workflows/test_role_elasticsearch.yml b/.github/workflows/test_role_elasticsearch.yml index 9cca43aa..4391d3ad 100644 --- a/.github/workflows/test_role_elasticsearch.yml +++ b/.github/workflows/test_role_elasticsearch.yml @@ -48,19 +48,23 @@ jobs: release: - 7 - 8 + ansible_version: + - "2.14" + - "2.20" steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | python3 -m pip install --upgrade pip + python3 -m pip install ansible==${{ matrix.ansible_version }} python3 -m pip install -r requirements-test.txt - name: Install collection diff --git a/.github/workflows/test_role_kibana.yml b/.github/workflows/test_role_kibana.yml index 4128f23a..0148a475 100644 --- a/.github/workflows/test_role_kibana.yml +++ b/.github/workflows/test_role_kibana.yml @@ -43,19 +43,23 @@ jobs: distro: [ubuntu2204] scenario: [kibana_default] release: [ 7, 8 ] + ansible_version: + - "2.14" + - "2.20" steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | python3 -m pip install --upgrade pip + python3 -m pip install ansible==${{ matrix.ansible_version }} python3 -m pip install -r requirements-test.txt - name: Install collection diff --git a/.github/workflows/test_role_logstash.yml b/.github/workflows/test_role_logstash.yml index 19eeb685..9f9ad04c 100644 --- a/.github/workflows/test_role_logstash.yml +++ b/.github/workflows/test_role_logstash.yml @@ -48,19 +48,23 @@ jobs: release: - 7 - 8 + ansible_version: + - "2.15" + - "2.20" steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | python3 -m pip install --upgrade pip + python3 -m pip install ansible==${{ matrix.ansible_version }} python3 -m pip install -r requirements-test.txt - name: Install collection diff --git a/.github/workflows/test_role_repos.yml b/.github/workflows/test_role_repos.yml index 7e4f6587..be09679c 100644 --- a/.github/workflows/test_role_repos.yml +++ b/.github/workflows/test_role_repos.yml @@ -59,10 +59,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | diff --git a/.gitignore b/.gitignore index 09f36261..486f83c0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,4 @@ __pycache__* .vscode .roo .ansible -.rooignore .venv diff --git a/docs/01-requirements.md b/docs/01-requirements.md index 9e78c5c2..89efcbf3 100644 --- a/docs/01-requirements.md +++ b/docs/01-requirements.md @@ -1,4 +1,7 @@ # Requirements + + +* Minimum Python version: 3.9 There are some requirements that the user have to fulfill while using the collection. Some of them will be refactored and disappear from the list soon. @@ -8,4 +11,4 @@ The collection provides roles for several tools (elasticsearch, kibana, ...). In **elasticstack_ca_host** -This is a mandatory variable. It is used to define the host that will be used as "CA host". Per default it is already defined (first host inside the group `elasticstack_elasticsearch_group_name`). In case you are using different group names, this variable wont be set with a defualt value. \ No newline at end of file +This is a mandatory variable. It is used to define the host that will be used as "CA host". Per default it is already defined (first host inside the group `elasticstack_elasticsearch_group_name`). In case you are using different group names, this variable wont be set with a defualt value. diff --git a/galaxy.yml b/galaxy.yml index 206776df..3828b22c 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -10,7 +10,8 @@ authors: - Thomas Widhalm description: This collection installs and configures components from the Elastic Stack. Every role can be used standalone or in combination with other roles. license: - - GPL-3.0 + - GPL-3.0-or-later +# min_ansible_version: "2.14" # max supported: 2.20 (commented out for schema compliance) license_file: 'LICENSE' tags: - elastic @@ -36,3 +37,4 @@ build_ignore: - .mailmap - '*.tar.gz' - 'venv*' +# Minimum Ansible version required: 2.14, maximum supported: 2.20 diff --git a/plugins/modules/README.md b/plugins/modules/README.md index 18f7344d..4cd4f247 100644 --- a/plugins/modules/README.md +++ b/plugins/modules/README.md @@ -41,7 +41,7 @@ The netways.elasticstack.cert_info module gathers information about pkcs12 certi ### Tested ansible-core versions - 2.11 -- 2.12 +- 2.14 - 2.13 - 2.14 diff --git a/roles/beats/meta/main.yml b/roles/beats/meta/main.yml index 046d0c63..4d5a2dbc 100644 --- a/roles/beats/meta/main.yml +++ b/roles/beats/meta/main.yml @@ -6,7 +6,7 @@ galaxy_info: description: Beats for Linux company: "Netways GmbH" license: GPL-3.0-or-later - min_ansible_version: "2.4" + min_ansible_version: "2.14" # max supported: 2.20 # Minimum version specifications are only for versions we have not had problems with; we will raise them when larger issues arise. platforms: - name: EL versions: diff --git a/roles/elasticsearch/meta/main.yml b/roles/elasticsearch/meta/main.yml index 9068ffba..8f59caac 100644 --- a/roles/elasticsearch/meta/main.yml +++ b/roles/elasticsearch/meta/main.yml @@ -6,7 +6,7 @@ galaxy_info: company: Netways GmbH namespace: netways license: GPL-3.0-or-later - min_ansible_version: "2.4" + min_ansible_version: "2.14" # max supported: 2.20 # Minimum version specifications are only for versions we have not had problems with; we will raise them when larger issues arise. platforms: - name: EL versions: diff --git a/roles/kibana/meta/main.yml b/roles/kibana/meta/main.yml index d2163f3f..96b43d55 100644 --- a/roles/kibana/meta/main.yml +++ b/roles/kibana/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: description: Ansible role for Kibana company: Netways GmbH license: GPL-3.0-or-later - min_ansible_version: "2.4" + min_ansible_version: "2.14" # max supported: 2.20 # Minimum version specifications are only for versions we have not had problems with; we will raise them when larger issues arise. platforms: - name: EL versions: diff --git a/roles/logstash/meta/main.yml b/roles/logstash/meta/main.yml index af844f1f..5c21d261 100644 --- a/roles/logstash/meta/main.yml +++ b/roles/logstash/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: description: Logstash for Linux company: "Netways GmbH" license: license (GPL-3.0-or-later) - min_ansible_version: "2.4" + min_ansible_version: "2.14" # max supported: 2.20 # Minimum version specifications are only for versions we have not had problems with; we will raise them when larger issues arise. platforms: - name: EL versions: diff --git a/roles/repos/meta/main.yml b/roles/repos/meta/main.yml index cf90ea63..d2aa5c67 100644 --- a/roles/repos/meta/main.yml +++ b/roles/repos/meta/main.yml @@ -6,7 +6,7 @@ galaxy_info: company: Netways GmbH license: GPL-3.0-or-later - min_ansible_version: "2.9" + min_ansible_version: "2.14" # max supported: 2.20 # Minimum version specifications are only for versions we have not had problems with; we will raise them when larger issues arise. platforms: - name: EL versions: From 3dac5d51eed201b787b8caa15361632143c16d8d Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 11 Mar 2026 13:14:57 +0100 Subject: [PATCH 02/25] Fix version for tests in Logstash tests --- .github/workflows/test_role_logstash.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_role_logstash.yml b/.github/workflows/test_role_logstash.yml index 9f9ad04c..6d2f75ef 100644 --- a/.github/workflows/test_role_logstash.yml +++ b/.github/workflows/test_role_logstash.yml @@ -49,7 +49,7 @@ jobs: - 7 - 8 ansible_version: - - "2.15" + - "2.14" - "2.20" steps: From c5b6bb00c0739e580277e2eca150b84633389681 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 11 Mar 2026 13:15:47 +0100 Subject: [PATCH 03/25] Fix README of modules with checks --- plugins/modules/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/modules/README.md b/plugins/modules/README.md index 4cd4f247..dfcbffdc 100644 --- a/plugins/modules/README.md +++ b/plugins/modules/README.md @@ -40,10 +40,8 @@ The netways.elasticstack.cert_info module gathers information about pkcs12 certi - 3.10 ### Tested ansible-core versions -- 2.11 -- 2.14 -- 2.13 - 2.14 +- 2.20 ### Security measures - Only supported extensions with its available values will be returned. The available keys and values are applied in the code with the `SUPPORTED_EXTENSIONS` dictionary. The module will loop through it, and only if found, it will save it to the `results` variable. From a481996976ae95f0ae2401e8a27adfb3e62d171d Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 11 Mar 2026 14:12:12 +0100 Subject: [PATCH 04/25] Fix Ansible version in requirements-test.txt --- requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-test.txt b/requirements-test.txt index b9673d4d..868466de 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,4 +1,4 @@ -ansible>=2.15 +ansible>=2.14 ansible-lint molecule molecule-plugins[docker] From 4a469ff6fc84774dd050362c028dfa05149b51b4 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 11 Mar 2026 14:14:13 +0100 Subject: [PATCH 05/25] Bump remaining Pyhton 3.8 to 3.9 --- .github/workflows/test_elasticsearch_modules.yml | 4 ++-- .github/workflows/test_roles_pr.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_elasticsearch_modules.yml b/.github/workflows/test_elasticsearch_modules.yml index 699b6527..01386a13 100644 --- a/.github/workflows/test_elasticsearch_modules.yml +++ b/.github/workflows/test_elasticsearch_modules.yml @@ -38,10 +38,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | diff --git a/.github/workflows/test_roles_pr.yml b/.github/workflows/test_roles_pr.yml index 7493fa47..6d4b2a91 100644 --- a/.github/workflows/test_roles_pr.yml +++ b/.github/workflows/test_roles_pr.yml @@ -45,10 +45,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | From eb30cf7282f7b0c8ce22aa0b82efe78bf19b4ae3 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 11 Mar 2026 14:21:23 +0100 Subject: [PATCH 06/25] Pin versions of requests and docker Python modules --- requirements-test.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements-test.txt b/requirements-test.txt index 868466de..d93b42dd 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -5,3 +5,5 @@ molecule-plugins[docker] pytest passlib elasticsearch<9 +docker>=7.1.0 +requests>=2.32.2 From 2768e1013c4fb95f71376c596e480db0dece47e0 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 11 Mar 2026 15:31:15 +0100 Subject: [PATCH 07/25] Bump Python to 3.10 --- .../workflows/test_elasticsearch_modules.yml | 6 ++--- .github/workflows/test_full_stack.yml | 6 ++--- .github/workflows/test_linting.yml | 2 +- .github/workflows/test_plugins.yml | 26 +++++++++++-------- .github/workflows/test_role_beats.yml | 6 ++--- .github/workflows/test_role_elasticsearch.yml | 6 ++--- .github/workflows/test_role_kibana.yml | 6 ++--- .github/workflows/test_role_logstash.yml | 6 ++--- .github/workflows/test_role_repos.yml | 6 ++--- .github/workflows/test_roles_pr.yml | 6 ++--- docs/01-requirements.md | 2 +- 11 files changed, 41 insertions(+), 37 deletions(-) diff --git a/.github/workflows/test_elasticsearch_modules.yml b/.github/workflows/test_elasticsearch_modules.yml index 01386a13..6addc673 100644 --- a/.github/workflows/test_elasticsearch_modules.yml +++ b/.github/workflows/test_elasticsearch_modules.yml @@ -38,10 +38,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 - name: Install dependencies run: | diff --git a/.github/workflows/test_full_stack.yml b/.github/workflows/test_full_stack.yml index bac49138..cfa22b55 100644 --- a/.github/workflows/test_full_stack.yml +++ b/.github/workflows/test_full_stack.yml @@ -54,10 +54,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 - name: Install dependencies run: | diff --git a/.github/workflows/test_linting.yml b/.github/workflows/test_linting.yml index 09f2d772..b144d657 100644 --- a/.github/workflows/test_linting.yml +++ b/.github/workflows/test_linting.yml @@ -29,7 +29,7 @@ jobs: uses: actions/checkout@v6 - name: Set up Python 3. - uses: actions/setup-python@v6 + uses: actions/setup-python@v4 with: python-version: '3.x' diff --git a/.github/workflows/test_plugins.yml b/.github/workflows/test_plugins.yml index d2e2ebdc..6573887e 100644 --- a/.github/workflows/test_plugins.yml +++ b/.github/workflows/test_plugins.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@v6 - name: Set up Python 3. - uses: actions/setup-python@v6 + uses: actions/setup-python@v4 with: python-version: '3.x' @@ -55,15 +55,19 @@ jobs: strategy: fail-fast: false + matrix: + python_version: + - 3.10 + - 3.11 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9.14 - uses: actions/setup-python@v6 + - name: Set up Python ${{ matrix.python_version }} + uses: actions/setup-python@v4 with: - python-version: 3.9.14 + python-version: ${{ matrix.python_version }} - name: Install dependencies run: | @@ -107,7 +111,7 @@ jobs: uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python_version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python_version }} @@ -147,10 +151,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9.14 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9.14 + python-version: 3.10 - name: Install dependencies run: | @@ -186,10 +190,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9.14 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9.14 + python-version: 3.10 - name: Install dependencies run: | diff --git a/.github/workflows/test_role_beats.yml b/.github/workflows/test_role_beats.yml index ee113eca..5599dca4 100644 --- a/.github/workflows/test_role_beats.yml +++ b/.github/workflows/test_role_beats.yml @@ -50,10 +50,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 - name: Install dependencies run: | diff --git a/.github/workflows/test_role_elasticsearch.yml b/.github/workflows/test_role_elasticsearch.yml index 4391d3ad..0de2a6ab 100644 --- a/.github/workflows/test_role_elasticsearch.yml +++ b/.github/workflows/test_role_elasticsearch.yml @@ -56,10 +56,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 - name: Install dependencies run: | diff --git a/.github/workflows/test_role_kibana.yml b/.github/workflows/test_role_kibana.yml index 0148a475..f4744d3a 100644 --- a/.github/workflows/test_role_kibana.yml +++ b/.github/workflows/test_role_kibana.yml @@ -51,10 +51,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 - name: Install dependencies run: | diff --git a/.github/workflows/test_role_logstash.yml b/.github/workflows/test_role_logstash.yml index 6d2f75ef..4af909dd 100644 --- a/.github/workflows/test_role_logstash.yml +++ b/.github/workflows/test_role_logstash.yml @@ -56,10 +56,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 - name: Install dependencies run: | diff --git a/.github/workflows/test_role_repos.yml b/.github/workflows/test_role_repos.yml index be09679c..846390ba 100644 --- a/.github/workflows/test_role_repos.yml +++ b/.github/workflows/test_role_repos.yml @@ -59,10 +59,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 - name: Install dependencies run: | diff --git a/.github/workflows/test_roles_pr.yml b/.github/workflows/test_roles_pr.yml index 6d4b2a91..624174f0 100644 --- a/.github/workflows/test_roles_pr.yml +++ b/.github/workflows/test_roles_pr.yml @@ -45,10 +45,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 - name: Install dependencies run: | diff --git a/docs/01-requirements.md b/docs/01-requirements.md index 89efcbf3..11c837da 100644 --- a/docs/01-requirements.md +++ b/docs/01-requirements.md @@ -1,7 +1,7 @@ # Requirements -* Minimum Python version: 3.9 +* Minimum Python version: 3.10 There are some requirements that the user have to fulfill while using the collection. Some of them will be refactored and disappear from the list soon. From 31881561629a0518b8a02a38c1d097c7b0baa3aa Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 11 Mar 2026 15:46:20 +0100 Subject: [PATCH 08/25] Quote Python versions --- .github/workflows/test_elasticsearch_modules.yml | 2 +- .github/workflows/test_full_stack.yml | 2 +- .github/workflows/test_plugins.yml | 4 ++-- .github/workflows/test_role_beats.yml | 2 +- .github/workflows/test_role_elasticsearch.yml | 2 +- .github/workflows/test_role_kibana.yml | 2 +- .github/workflows/test_role_logstash.yml | 2 +- .github/workflows/test_role_repos.yml | 2 +- .github/workflows/test_roles_pr.yml | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test_elasticsearch_modules.yml b/.github/workflows/test_elasticsearch_modules.yml index 6addc673..56ad367c 100644 --- a/.github/workflows/test_elasticsearch_modules.yml +++ b/.github/workflows/test_elasticsearch_modules.yml @@ -41,7 +41,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test_full_stack.yml b/.github/workflows/test_full_stack.yml index cfa22b55..fa4663d8 100644 --- a/.github/workflows/test_full_stack.yml +++ b/.github/workflows/test_full_stack.yml @@ -57,7 +57,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test_plugins.yml b/.github/workflows/test_plugins.yml index 6573887e..52d386a9 100644 --- a/.github/workflows/test_plugins.yml +++ b/.github/workflows/test_plugins.yml @@ -154,7 +154,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | @@ -193,7 +193,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_beats.yml b/.github/workflows/test_role_beats.yml index 5599dca4..e7c60494 100644 --- a/.github/workflows/test_role_beats.yml +++ b/.github/workflows/test_role_beats.yml @@ -53,7 +53,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_elasticsearch.yml b/.github/workflows/test_role_elasticsearch.yml index 0de2a6ab..1d7f24ac 100644 --- a/.github/workflows/test_role_elasticsearch.yml +++ b/.github/workflows/test_role_elasticsearch.yml @@ -59,7 +59,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_kibana.yml b/.github/workflows/test_role_kibana.yml index f4744d3a..443f446d 100644 --- a/.github/workflows/test_role_kibana.yml +++ b/.github/workflows/test_role_kibana.yml @@ -54,7 +54,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_logstash.yml b/.github/workflows/test_role_logstash.yml index 4af909dd..e1da82e9 100644 --- a/.github/workflows/test_role_logstash.yml +++ b/.github/workflows/test_role_logstash.yml @@ -59,7 +59,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_repos.yml b/.github/workflows/test_role_repos.yml index 846390ba..5be53a66 100644 --- a/.github/workflows/test_role_repos.yml +++ b/.github/workflows/test_role_repos.yml @@ -62,7 +62,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test_roles_pr.yml b/.github/workflows/test_roles_pr.yml index 624174f0..a296a5d4 100644 --- a/.github/workflows/test_roles_pr.yml +++ b/.github/workflows/test_roles_pr.yml @@ -48,7 +48,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | From 9a0ba5b1396e0ae572bf70d87f7d4a26adaab0a4 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Thu, 12 Mar 2026 17:45:54 +0100 Subject: [PATCH 09/25] Set Python interpreter on Rockylinux 8 --- .gitignore | 3 +++ molecule/beats_default/molecule.yml | 4 ++++ molecule/beats_peculiar/molecule.yml | 4 ++++ molecule/elasticsearch_cluster-oss/molecule.yml | 10 ++++++++-- molecule/elasticsearch_default/molecule.yml | 10 ++++++++-- molecule/elasticsearch_no-security/molecule.yml | 10 ++++++++-- .../elasticsearch_roles_calculation/molecule.yml | 14 +++++++++++--- molecule/elasticsearch_test_modules/molecule.yml | 6 +++++- molecule/elasticstack_default/molecule.yml | 4 ++++ molecule/kibana_default/molecule.yml | 6 +++++- molecule/logstash_full_stack-oss/molecule.yml | 6 +++++- molecule/logstash_pipelines/molecule.yml | 6 +++++- molecule/logstash_specific_version/molecule.yml | 6 +++++- molecule/repos_default/molecule.yml | 6 +++++- molecule/repos_oss/molecule.yml | 6 +++++- 15 files changed, 85 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 486f83c0..92d97a29 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ __pycache__* .roo .ansible .venv +CLAUDE.md +.claudeignore +.rooignore diff --git a/molecule/beats_default/molecule.yml b/molecule/beats_default/molecule.yml index a989c22a..82f55c6a 100644 --- a/molecule/beats_default/molecule.yml +++ b/molecule/beats_default/molecule.yml @@ -14,5 +14,9 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + beats_default_rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/beats_peculiar/molecule.yml b/molecule/beats_peculiar/molecule.yml index 6a0fda12..d9ba28fb 100644 --- a/molecule/beats_peculiar/molecule.yml +++ b/molecule/beats_peculiar/molecule.yml @@ -14,5 +14,9 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + beats_peculiar_rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_cluster-oss/molecule.yml b/molecule/elasticsearch_cluster-oss/molecule.yml index 65d38f17..46abdab6 100644 --- a/molecule/elasticsearch_cluster-oss/molecule.yml +++ b/molecule/elasticsearch_cluster-oss/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: elasticsearch-cluster1 + - name: "elasticsearch-cluster1-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -16,7 +16,7 @@ platforms: cgroupns_mode: host privileged: true pre_build_image: true - - name: elasticsearch-cluster2 + - name: "elasticsearch-cluster2-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -28,5 +28,11 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + elasticsearch-cluster1-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 + elasticsearch-cluster2-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_default/molecule.yml b/molecule/elasticsearch_default/molecule.yml index 27bb3d8b..a5edc416 100644 --- a/molecule/elasticsearch_default/molecule.yml +++ b/molecule/elasticsearch_default/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: elasticsearch_default1 + - name: "elasticsearch_default1-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -16,7 +16,7 @@ platforms: cgroupns_mode: host privileged: true pre_build_image: true - - name: elasticsearch_default2 + - name: "elasticsearch_default2-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -28,5 +28,11 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + elasticsearch_default1-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 + elasticsearch_default2-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_no-security/molecule.yml b/molecule/elasticsearch_no-security/molecule.yml index 077c8767..2c7c4baa 100644 --- a/molecule/elasticsearch_no-security/molecule.yml +++ b/molecule/elasticsearch_no-security/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: elasticsearch-nosecurity1 + - name: "elasticsearch-nosecurity1-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearchXYZ image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -16,7 +16,7 @@ platforms: cgroupns_mode: host privileged: true pre_build_image: true - - name: elasticsearch-nosecurity2 + - name: "elasticsearch-nosecurity2-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearchXYZ image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -28,5 +28,11 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + elasticsearch-nosecurity1-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 + elasticsearch-nosecurity2-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_roles_calculation/molecule.yml b/molecule/elasticsearch_roles_calculation/molecule.yml index fe33e032..b6930e06 100644 --- a/molecule/elasticsearch_roles_calculation/molecule.yml +++ b/molecule/elasticsearch_roles_calculation/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: elasticsearch-cluster1 + - name: "elasticsearch-cluster1-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -16,7 +16,7 @@ platforms: cgroupns_mode: host privileged: true pre_build_image: true - - name: elasticsearch-cluster2 + - name: "elasticsearch-cluster2-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -26,7 +26,7 @@ platforms: cgroupns_mode: host privileged: true pre_build_image: true - - name: elasticsearch-cluster3 + - name: "elasticsearch-cluster3-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -38,5 +38,13 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + elasticsearch-cluster1-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 + elasticsearch-cluster2-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 + elasticsearch-cluster3-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_test_modules/molecule.yml b/molecule/elasticsearch_test_modules/molecule.yml index e39bf9cf..58aaf2fc 100644 --- a/molecule/elasticsearch_test_modules/molecule.yml +++ b/molecule/elasticsearch_test_modules/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: elasticsearch_default + - name: "elasticsearch_default-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -22,5 +22,9 @@ provisioner: # overwhelming #env: # ANSIBLE_VERBOSITY: 3 + inventory: + host_vars: + elasticsearch_default-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index f564f6b4..7d9a19c4 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -36,6 +36,10 @@ provisioner: host_vars: elasticstack${ELASTIC_RELEASE}-cluster2-${MOLECULE_DISTRO}: elasticsearch_tls_key_passphrase: UniqueHostPassword + elasticstack${ELASTIC_RELEASE}-cluster1-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 + elasticstack${ELASTIC_RELEASE}-cluster2-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 # Just enable temporarily. Sometimes it's useful, but most of the time it's # overwhelming diff --git a/molecule/kibana_default/molecule.yml b/molecule/kibana_default/molecule.yml index 4ee0366f..a6fc55cd 100644 --- a/molecule/kibana_default/molecule.yml +++ b/molecule/kibana_default/molecule.yml @@ -4,7 +4,7 @@ dependency: driver: name: docker platforms: - - name: kibana_default + - name: "kibana_default-${MOLECULE_DISTRO:-debian12}" image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: @@ -14,5 +14,9 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + kibana_default-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/logstash_full_stack-oss/molecule.yml b/molecule/logstash_full_stack-oss/molecule.yml index 04121c08..9b89ca81 100644 --- a/molecule/logstash_full_stack-oss/molecule.yml +++ b/molecule/logstash_full_stack-oss/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: logstash-full-oss + - name: "logstash-full-oss-${MOLECULE_DISTRO:-debian12}" groups: - elasticsearch - logstash @@ -20,5 +20,9 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + logstash-full-oss-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/logstash_pipelines/molecule.yml b/molecule/logstash_pipelines/molecule.yml index 3c6491d7..3e727836 100644 --- a/molecule/logstash_pipelines/molecule.yml +++ b/molecule/logstash_pipelines/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: ansible-role-logstash_pipelines + - name: "ansible-role-logstash_pipelines-${MOLECULE_DISTRO:-debian12}" image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: @@ -16,5 +16,9 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + ansible-role-logstash_pipelines-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/logstash_specific_version/molecule.yml b/molecule/logstash_specific_version/molecule.yml index c83f761a..d05ffef8 100644 --- a/molecule/logstash_specific_version/molecule.yml +++ b/molecule/logstash_specific_version/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: elasticstack_version + - name: "elasticstack_version-${MOLECULE_DISTRO:-debian12}" image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: @@ -16,5 +16,9 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + elasticstack_version-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/repos_default/molecule.yml b/molecule/repos_default/molecule.yml index fa1d32be..fa1795ef 100644 --- a/molecule/repos_default/molecule.yml +++ b/molecule/repos_default/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: elastic-repos-default + - name: "elastic-repos-default-${MOLECULE_DISTRO:-debian12}" image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: @@ -16,5 +16,9 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + elastic-repos-default-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/repos_oss/molecule.yml b/molecule/repos_oss/molecule.yml index 977dac8a..16142715 100644 --- a/molecule/repos_oss/molecule.yml +++ b/molecule/repos_oss/molecule.yml @@ -6,7 +6,7 @@ dependency: driver: name: docker platforms: - - name: elastic-repos-default-oss + - name: "elastic-repos-default-oss-${MOLECULE_DISTRO:-debian12}" image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: @@ -16,5 +16,9 @@ platforms: pre_build_image: true provisioner: name: ansible + inventory: + host_vars: + elastic-repos-default-oss-rockylinux8: + ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible From 84203b8c53523a30795952a945252ea496fa5653 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Thu, 12 Mar 2026 18:02:18 +0100 Subject: [PATCH 10/25] Install Python 3.9 on Rockylinux 8 --- molecule/beats_default/prepare.yml | 9 +++++++++ molecule/beats_peculiar/prepare.yml | 9 +++++++++ molecule/elasticsearch_cluster-oss/prepare.yml | 9 +++++++++ molecule/elasticsearch_default/prepare.yml | 9 +++++++++ molecule/elasticsearch_no-security/prepare.yml | 9 +++++++++ molecule/elasticsearch_roles_calculation/prepare.yml | 9 +++++++++ molecule/elasticsearch_test_modules/prepare.yml | 9 +++++++++ molecule/elasticstack_default/prepare.yml | 9 +++++++++ molecule/kibana_default/prepare.yml | 9 +++++++++ molecule/logstash_full_stack-oss/prepare.yml | 9 +++++++++ molecule/logstash_pipelines/prepare.yml | 9 +++++++++ molecule/logstash_specific_version/prepare.yml | 9 +++++++++ molecule/repos_default/prepare.yml | 9 +++++++++ molecule/repos_oss/prepare.yml | 9 +++++++++ 14 files changed, 126 insertions(+) diff --git a/molecule/beats_default/prepare.yml b/molecule/beats_default/prepare.yml index 9a0d8636..31f279a7 100644 --- a/molecule/beats_default/prepare.yml +++ b/molecule/beats_default/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/beats_peculiar/prepare.yml b/molecule/beats_peculiar/prepare.yml index 9a0d8636..31f279a7 100644 --- a/molecule/beats_peculiar/prepare.yml +++ b/molecule/beats_peculiar/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_cluster-oss/prepare.yml b/molecule/elasticsearch_cluster-oss/prepare.yml index cf162407..a5a818d6 100644 --- a/molecule/elasticsearch_cluster-oss/prepare.yml +++ b/molecule/elasticsearch_cluster-oss/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_default/prepare.yml b/molecule/elasticsearch_default/prepare.yml index cf162407..a5a818d6 100644 --- a/molecule/elasticsearch_default/prepare.yml +++ b/molecule/elasticsearch_default/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_no-security/prepare.yml b/molecule/elasticsearch_no-security/prepare.yml index d8ed506a..ac01cf2f 100644 --- a/molecule/elasticsearch_no-security/prepare.yml +++ b/molecule/elasticsearch_no-security/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_roles_calculation/prepare.yml b/molecule/elasticsearch_roles_calculation/prepare.yml index 0c3540ad..155aaeb5 100644 --- a/molecule/elasticsearch_roles_calculation/prepare.yml +++ b/molecule/elasticsearch_roles_calculation/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_test_modules/prepare.yml b/molecule/elasticsearch_test_modules/prepare.yml index e55e3df0..e75e4500 100644 --- a/molecule/elasticsearch_test_modules/prepare.yml +++ b/molecule/elasticsearch_test_modules/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/elasticstack_default/prepare.yml b/molecule/elasticstack_default/prepare.yml index 34576572..e3e322e1 100644 --- a/molecule/elasticstack_default/prepare.yml +++ b/molecule/elasticstack_default/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/kibana_default/prepare.yml b/molecule/kibana_default/prepare.yml index 812e44b9..e1ea55c8 100644 --- a/molecule/kibana_default/prepare.yml +++ b/molecule/kibana_default/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/logstash_full_stack-oss/prepare.yml b/molecule/logstash_full_stack-oss/prepare.yml index 9a0d8636..31f279a7 100644 --- a/molecule/logstash_full_stack-oss/prepare.yml +++ b/molecule/logstash_full_stack-oss/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/logstash_pipelines/prepare.yml b/molecule/logstash_pipelines/prepare.yml index b61094c3..5137b715 100644 --- a/molecule/logstash_pipelines/prepare.yml +++ b/molecule/logstash_pipelines/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/logstash_specific_version/prepare.yml b/molecule/logstash_specific_version/prepare.yml index 9a0d8636..31f279a7 100644 --- a/molecule/logstash_specific_version/prepare.yml +++ b/molecule/logstash_specific_version/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/repos_default/prepare.yml b/molecule/repos_default/prepare.yml index 74162f3f..cf7a2043 100644 --- a/molecule/repos_default/prepare.yml +++ b/molecule/repos_default/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: diff --git a/molecule/repos_oss/prepare.yml b/molecule/repos_oss/prepare.yml index 74162f3f..cf7a2043 100644 --- a/molecule/repos_oss/prepare.yml +++ b/molecule/repos_oss/prepare.yml @@ -1,4 +1,13 @@ --- +- name: Bootstrap Python 3.9 on Rocky Linux 8 + hosts: all + gather_facts: false + tasks: + - name: Install Python 3.9 if not yet available (Rocky Linux 8) + ansible.builtin.raw: | + grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true + changed_when: false + - name: Prepare hosts: all tasks: From c8b2cd89b914a547c4ea2912a46853c190a916f7 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 17:44:39 +0100 Subject: [PATCH 11/25] * Remove python 3.9 configuration * User python 3.11 on Controller * Use fixed ansible version --- .../workflows/test_elasticsearch_modules.yml | 11 ++++++-- .github/workflows/test_full_stack.yml | 16 ++++------- .github/workflows/test_linting.yml | 4 +-- .github/workflows/test_plugins.yml | 28 +++++++++---------- .github/workflows/test_role_beats.yml | 9 +++--- .github/workflows/test_role_elasticsearch.yml | 8 ++---- .github/workflows/test_role_kibana.yml | 9 +++--- .github/workflows/test_role_logstash.yml | 9 +++--- .github/workflows/test_role_repos.yml | 10 ++++--- .github/workflows/test_roles_pr.yml | 17 +++++++++-- molecule/beats_default/molecule.yml | 4 --- molecule/beats_default/prepare.yml | 9 ------ molecule/beats_peculiar/molecule.yml | 4 --- molecule/beats_peculiar/prepare.yml | 9 ------ .../elasticsearch_cluster-oss/molecule.yml | 6 ---- .../elasticsearch_cluster-oss/prepare.yml | 9 ------ molecule/elasticsearch_default/molecule.yml | 6 ---- molecule/elasticsearch_default/prepare.yml | 9 ------ .../elasticsearch_no-security/molecule.yml | 6 ---- .../elasticsearch_no-security/prepare.yml | 9 ------ .../molecule.yml | 8 ------ .../prepare.yml | 9 ------ .../elasticsearch_test_modules/molecule.yml | 4 --- .../elasticsearch_test_modules/prepare.yml | 9 ------ molecule/elasticstack_default/molecule.yml | 4 --- molecule/elasticstack_default/prepare.yml | 14 ++++------ .../elasticstack_default/requirements.yml | 1 + molecule/elasticstack_default/verify.yml | 6 ++-- molecule/kibana_default/molecule.yml | 4 --- molecule/kibana_default/prepare.yml | 9 ------ molecule/logstash_full_stack-oss/molecule.yml | 4 --- molecule/logstash_full_stack-oss/prepare.yml | 9 ------ molecule/logstash_pipelines/molecule.yml | 4 --- molecule/logstash_pipelines/prepare.yml | 9 ------ .../logstash_specific_version/molecule.yml | 4 --- .../logstash_specific_version/prepare.yml | 9 ------ molecule/repos_default/molecule.yml | 4 --- molecule/repos_default/prepare.yml | 9 ------ molecule/repos_oss/molecule.yml | 4 --- molecule/repos_oss/prepare.yml | 9 ------ requirements-test.txt | 1 - 41 files changed, 73 insertions(+), 253 deletions(-) diff --git a/.github/workflows/test_elasticsearch_modules.yml b/.github/workflows/test_elasticsearch_modules.yml index 56ad367c..135ceb94 100644 --- a/.github/workflows/test_elasticsearch_modules.yml +++ b/.github/workflows/test_elasticsearch_modules.yml @@ -33,19 +33,24 @@ jobs: - elasticsearch_test_modules release: - 8 + python_version: + - "3.11" + ansible_version: + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: ${{ matrix.python_version }} - name: Install dependencies run: | python3 -m pip install --upgrade pip + python3 -m pip install "${{ matrix.ansible_version }}" python3 -m pip install -r requirements-test.txt - name: Install collection diff --git a/.github/workflows/test_full_stack.yml b/.github/workflows/test_full_stack.yml index fa4663d8..df939e80 100644 --- a/.github/workflows/test_full_stack.yml +++ b/.github/workflows/test_full_stack.yml @@ -35,29 +35,25 @@ jobs: matrix: distro: - rockylinux8 - - rockylinux9 - - ubuntu2004 - ubuntu2204 - - debian10 - - debian11 - - centos8 scenario: - elasticstack_default release: - 7 - 8 ansible_version: - - "2.14" - - "2.20" + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 + python_version: + - "3.11" steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | diff --git a/.github/workflows/test_linting.yml b/.github/workflows/test_linting.yml index b144d657..cc19773c 100644 --- a/.github/workflows/test_linting.yml +++ b/.github/workflows/test_linting.yml @@ -28,10 +28,10 @@ jobs: - name: Check out the codebase. uses: actions/checkout@v6 - - name: Set up Python 3. + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: "3.11" - name: Install test dependencies. run: | diff --git a/.github/workflows/test_plugins.yml b/.github/workflows/test_plugins.yml index 52d386a9..3f0cdfd0 100644 --- a/.github/workflows/test_plugins.yml +++ b/.github/workflows/test_plugins.yml @@ -31,10 +31,10 @@ jobs: - name: Check out the codebase. uses: actions/checkout@v6 - - name: Set up Python 3. - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v6 with: - python-version: '3.x' + python-version: "3.11" - name: Install test dependencies. run: | @@ -57,7 +57,6 @@ jobs: fail-fast: false matrix: python_version: - - 3.10 - 3.11 steps: @@ -65,7 +64,7 @@ jobs: uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python_version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python_version }} @@ -143,23 +142,22 @@ jobs: strategy: fail-fast: false matrix: - ansible_core_version: - - 2.14 - - 2.20 + ansible_version: + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install install ansible-core==${{ matrix.ansible_core_version }} + python -m pip install install ansible-core==${{ matrix.ansible_version }} - name: Install collection run: | @@ -190,10 +188,10 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_beats.yml b/.github/workflows/test_role_beats.yml index e7c60494..8e7ad3b4 100644 --- a/.github/workflows/test_role_beats.yml +++ b/.github/workflows/test_role_beats.yml @@ -43,17 +43,16 @@ jobs: scenario: [beats_default, beats_peculiar] release: [ 7, 8 ] ansible_version: - - "2.14" - - "2.20" + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_elasticsearch.yml b/.github/workflows/test_role_elasticsearch.yml index 1d7f24ac..6f193396 100644 --- a/.github/workflows/test_role_elasticsearch.yml +++ b/.github/workflows/test_role_elasticsearch.yml @@ -49,17 +49,15 @@ jobs: - 7 - 8 ansible_version: - - "2.14" - - "2.20" - + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_kibana.yml b/.github/workflows/test_role_kibana.yml index 443f446d..dec348f6 100644 --- a/.github/workflows/test_role_kibana.yml +++ b/.github/workflows/test_role_kibana.yml @@ -44,17 +44,16 @@ jobs: scenario: [kibana_default] release: [ 7, 8 ] ansible_version: - - "2.14" - - "2.20" + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_logstash.yml b/.github/workflows/test_role_logstash.yml index e1da82e9..35917ba2 100644 --- a/.github/workflows/test_role_logstash.yml +++ b/.github/workflows/test_role_logstash.yml @@ -49,17 +49,16 @@ jobs: - 7 - 8 ansible_version: - - "2.14" - - "2.20" + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | diff --git a/.github/workflows/test_role_repos.yml b/.github/workflows/test_role_repos.yml index 5be53a66..03d6f505 100644 --- a/.github/workflows/test_role_repos.yml +++ b/.github/workflows/test_role_repos.yml @@ -41,7 +41,6 @@ jobs: matrix: distro: - # centos7 removed - no longer supported - debian10 - debian11 - rockylinux8 @@ -54,19 +53,22 @@ jobs: release: - 7 - 8 + ansible_version: + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | python3 -m pip install --upgrade pip + python3 -m pip install "${{ matrix.ansible_version }}" python3 -m pip install -r requirements-test.txt ansible-galaxy collection install community.general diff --git a/.github/workflows/test_roles_pr.yml b/.github/workflows/test_roles_pr.yml index a296a5d4..d23d39b2 100644 --- a/.github/workflows/test_roles_pr.yml +++ b/.github/workflows/test_roles_pr.yml @@ -40,19 +40,30 @@ jobs: release: - 7 - 8 + python_version: + - "3.11" + # - "3.12" + # - "3.13" + ansible_version: + - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 + # - "ansible>=10.0,<11.0" #Correspond ansible-core>=2.17,<2.18 + # - "ansible>=11.0,<12.0" #Correspond ansible-core>=2.18,<2.19 + # - "ansible>=12.0,<13.0" #Correspond ansible-core>=2.19,<2.20 + # - "ansible>=13.0,<14.0" #Correspond ansible-core>=2.20,<2.21 steps: - name: Check out code uses: actions/checkout@v6 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: ${{ matrix.python_version }} - name: Install dependencies run: | python3 -m pip install --upgrade pip + python3 -m pip install "${{ matrix.ansible_version }}" python3 -m pip install -r requirements-test.txt - name: Install collection diff --git a/molecule/beats_default/molecule.yml b/molecule/beats_default/molecule.yml index 82f55c6a..a989c22a 100644 --- a/molecule/beats_default/molecule.yml +++ b/molecule/beats_default/molecule.yml @@ -14,9 +14,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - beats_default_rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/beats_default/prepare.yml b/molecule/beats_default/prepare.yml index 31f279a7..9a0d8636 100644 --- a/molecule/beats_default/prepare.yml +++ b/molecule/beats_default/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/beats_peculiar/molecule.yml b/molecule/beats_peculiar/molecule.yml index d9ba28fb..6a0fda12 100644 --- a/molecule/beats_peculiar/molecule.yml +++ b/molecule/beats_peculiar/molecule.yml @@ -14,9 +14,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - beats_peculiar_rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/beats_peculiar/prepare.yml b/molecule/beats_peculiar/prepare.yml index 31f279a7..9a0d8636 100644 --- a/molecule/beats_peculiar/prepare.yml +++ b/molecule/beats_peculiar/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_cluster-oss/molecule.yml b/molecule/elasticsearch_cluster-oss/molecule.yml index 46abdab6..60663f1c 100644 --- a/molecule/elasticsearch_cluster-oss/molecule.yml +++ b/molecule/elasticsearch_cluster-oss/molecule.yml @@ -28,11 +28,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - elasticsearch-cluster1-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 - elasticsearch-cluster2-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_cluster-oss/prepare.yml b/molecule/elasticsearch_cluster-oss/prepare.yml index a5a818d6..cf162407 100644 --- a/molecule/elasticsearch_cluster-oss/prepare.yml +++ b/molecule/elasticsearch_cluster-oss/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_default/molecule.yml b/molecule/elasticsearch_default/molecule.yml index a5edc416..66a33560 100644 --- a/molecule/elasticsearch_default/molecule.yml +++ b/molecule/elasticsearch_default/molecule.yml @@ -28,11 +28,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - elasticsearch_default1-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 - elasticsearch_default2-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_default/prepare.yml b/molecule/elasticsearch_default/prepare.yml index a5a818d6..cf162407 100644 --- a/molecule/elasticsearch_default/prepare.yml +++ b/molecule/elasticsearch_default/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_no-security/molecule.yml b/molecule/elasticsearch_no-security/molecule.yml index 2c7c4baa..f7e82c68 100644 --- a/molecule/elasticsearch_no-security/molecule.yml +++ b/molecule/elasticsearch_no-security/molecule.yml @@ -28,11 +28,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - elasticsearch-nosecurity1-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 - elasticsearch-nosecurity2-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_no-security/prepare.yml b/molecule/elasticsearch_no-security/prepare.yml index ac01cf2f..d8ed506a 100644 --- a/molecule/elasticsearch_no-security/prepare.yml +++ b/molecule/elasticsearch_no-security/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_roles_calculation/molecule.yml b/molecule/elasticsearch_roles_calculation/molecule.yml index b6930e06..0bcae824 100644 --- a/molecule/elasticsearch_roles_calculation/molecule.yml +++ b/molecule/elasticsearch_roles_calculation/molecule.yml @@ -38,13 +38,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - elasticsearch-cluster1-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 - elasticsearch-cluster2-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 - elasticsearch-cluster3-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_roles_calculation/prepare.yml b/molecule/elasticsearch_roles_calculation/prepare.yml index 155aaeb5..0c3540ad 100644 --- a/molecule/elasticsearch_roles_calculation/prepare.yml +++ b/molecule/elasticsearch_roles_calculation/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/elasticsearch_test_modules/molecule.yml b/molecule/elasticsearch_test_modules/molecule.yml index 58aaf2fc..8525eb38 100644 --- a/molecule/elasticsearch_test_modules/molecule.yml +++ b/molecule/elasticsearch_test_modules/molecule.yml @@ -22,9 +22,5 @@ provisioner: # overwhelming #env: # ANSIBLE_VERBOSITY: 3 - inventory: - host_vars: - elasticsearch_default-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/elasticsearch_test_modules/prepare.yml b/molecule/elasticsearch_test_modules/prepare.yml index e75e4500..e55e3df0 100644 --- a/molecule/elasticsearch_test_modules/prepare.yml +++ b/molecule/elasticsearch_test_modules/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 7d9a19c4..f564f6b4 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -36,10 +36,6 @@ provisioner: host_vars: elasticstack${ELASTIC_RELEASE}-cluster2-${MOLECULE_DISTRO}: elasticsearch_tls_key_passphrase: UniqueHostPassword - elasticstack${ELASTIC_RELEASE}-cluster1-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 - elasticstack${ELASTIC_RELEASE}-cluster2-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 # Just enable temporarily. Sometimes it's useful, but most of the time it's # overwhelming diff --git a/molecule/elasticstack_default/prepare.yml b/molecule/elasticstack_default/prepare.yml index e3e322e1..5e6fa50e 100644 --- a/molecule/elasticstack_default/prepare.yml +++ b/molecule/elasticstack_default/prepare.yml @@ -1,16 +1,12 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: + + - name: Show discovered interpreter + debug: + var: ansible_facts.discovered_interpreter_python + - name: Install packages for RHEL ansible.builtin.package: name: diff --git a/molecule/elasticstack_default/requirements.yml b/molecule/elasticstack_default/requirements.yml index e372f1ec..132913cd 100644 --- a/molecule/elasticstack_default/requirements.yml +++ b/molecule/elasticstack_default/requirements.yml @@ -7,3 +7,4 @@ roles: collections: - community.general - community.crypto + diff --git a/molecule/elasticstack_default/verify.yml b/molecule/elasticstack_default/verify.yml index 9e9a4ba7..77c7bdb5 100644 --- a/molecule/elasticstack_default/verify.yml +++ b/molecule/elasticstack_default/verify.yml @@ -127,8 +127,8 @@ - name: Check if all Nodes see each other ansible.builtin.assert: that: - - "'{{ item }}' in nodes.content" - fail_msg: "'{{ item }}' was not found in nodes.content" - success_msg: "'{{ item }}' was found in nodes.content" + - item in nodes.content + fail_msg: "{{ item }} was not found in nodes.content" + success_msg: "{{ item }} was found in nodes.content" with_inventory_hostnames: all when: groups[elasticstack_elasticsearch_group_name] | length > 1 diff --git a/molecule/kibana_default/molecule.yml b/molecule/kibana_default/molecule.yml index a6fc55cd..8a3e9c97 100644 --- a/molecule/kibana_default/molecule.yml +++ b/molecule/kibana_default/molecule.yml @@ -14,9 +14,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - kibana_default-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/kibana_default/prepare.yml b/molecule/kibana_default/prepare.yml index e1ea55c8..812e44b9 100644 --- a/molecule/kibana_default/prepare.yml +++ b/molecule/kibana_default/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/logstash_full_stack-oss/molecule.yml b/molecule/logstash_full_stack-oss/molecule.yml index 9b89ca81..228f673a 100644 --- a/molecule/logstash_full_stack-oss/molecule.yml +++ b/molecule/logstash_full_stack-oss/molecule.yml @@ -20,9 +20,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - logstash-full-oss-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/logstash_full_stack-oss/prepare.yml b/molecule/logstash_full_stack-oss/prepare.yml index 31f279a7..9a0d8636 100644 --- a/molecule/logstash_full_stack-oss/prepare.yml +++ b/molecule/logstash_full_stack-oss/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/logstash_pipelines/molecule.yml b/molecule/logstash_pipelines/molecule.yml index 3e727836..68bcc7be 100644 --- a/molecule/logstash_pipelines/molecule.yml +++ b/molecule/logstash_pipelines/molecule.yml @@ -16,9 +16,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - ansible-role-logstash_pipelines-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/logstash_pipelines/prepare.yml b/molecule/logstash_pipelines/prepare.yml index 5137b715..b61094c3 100644 --- a/molecule/logstash_pipelines/prepare.yml +++ b/molecule/logstash_pipelines/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/logstash_specific_version/molecule.yml b/molecule/logstash_specific_version/molecule.yml index d05ffef8..2d63e437 100644 --- a/molecule/logstash_specific_version/molecule.yml +++ b/molecule/logstash_specific_version/molecule.yml @@ -16,9 +16,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - elasticstack_version-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/logstash_specific_version/prepare.yml b/molecule/logstash_specific_version/prepare.yml index 31f279a7..9a0d8636 100644 --- a/molecule/logstash_specific_version/prepare.yml +++ b/molecule/logstash_specific_version/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/repos_default/molecule.yml b/molecule/repos_default/molecule.yml index fa1795ef..f83eaead 100644 --- a/molecule/repos_default/molecule.yml +++ b/molecule/repos_default/molecule.yml @@ -16,9 +16,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - elastic-repos-default-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/repos_default/prepare.yml b/molecule/repos_default/prepare.yml index cf7a2043..74162f3f 100644 --- a/molecule/repos_default/prepare.yml +++ b/molecule/repos_default/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/molecule/repos_oss/molecule.yml b/molecule/repos_oss/molecule.yml index 16142715..a702ccce 100644 --- a/molecule/repos_oss/molecule.yml +++ b/molecule/repos_oss/molecule.yml @@ -16,9 +16,5 @@ platforms: pre_build_image: true provisioner: name: ansible - inventory: - host_vars: - elastic-repos-default-oss-rockylinux8: - ansible_python_interpreter: /usr/bin/python3.9 verifier: name: ansible diff --git a/molecule/repos_oss/prepare.yml b/molecule/repos_oss/prepare.yml index cf7a2043..74162f3f 100644 --- a/molecule/repos_oss/prepare.yml +++ b/molecule/repos_oss/prepare.yml @@ -1,13 +1,4 @@ --- -- name: Bootstrap Python 3.9 on Rocky Linux 8 - hosts: all - gather_facts: false - tasks: - - name: Install Python 3.9 if not yet available (Rocky Linux 8) - ansible.builtin.raw: | - grep -qs "Rocky Linux release 8" /etc/redhat-release && dnf install -y python39 || true - changed_when: false - - name: Prepare hosts: all tasks: diff --git a/requirements-test.txt b/requirements-test.txt index d93b42dd..b0d88da3 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,4 +1,3 @@ -ansible>=2.14 ansible-lint molecule molecule-plugins[docker] From 05fdfadb4cac03c1cd127ce5c5e3850027073703 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 18:04:23 +0100 Subject: [PATCH 12/25] Add installtion path for roles --- molecule/elasticstack_default/molecule.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index f564f6b4..66383552 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -3,6 +3,7 @@ dependency: name: galaxy options: requirements-file: requirements.yml + roles-path: /root/.ansible/roles driver: name: docker platforms: From f6fcc174779755685b86d3d505b51eb679a4d574 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 18:27:16 +0100 Subject: [PATCH 13/25] Add installtion path for roles --- molecule/elasticstack_default/molecule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 66383552..70fe606d 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy options: requirements-file: requirements.yml - roles-path: /root/.ansible/roles + roles-path: ~/.ansible/roles driver: name: docker platforms: From 60339e1b2832737a8487c734dd396a96257a3b96 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 18:54:52 +0100 Subject: [PATCH 14/25] test sperating collections from roles --- molecule/elasticstack_default/collections.yml | 4 ++++ molecule/elasticstack_default/molecule.yml | 4 ++-- molecule/elasticstack_default/requirements.yml | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 molecule/elasticstack_default/collections.yml diff --git a/molecule/elasticstack_default/collections.yml b/molecule/elasticstack_default/collections.yml new file mode 100644 index 00000000..554b93f4 --- /dev/null +++ b/molecule/elasticstack_default/collections.yml @@ -0,0 +1,4 @@ +--- +collections: + - community.general + - community.crypto diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 70fe606d..7038de55 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -2,8 +2,8 @@ dependency: name: galaxy options: - requirements-file: requirements.yml - roles-path: ~/.ansible/roles + role-file: requirements.yml +# roles-path: ~/.ansible/roles driver: name: docker platforms: diff --git a/molecule/elasticstack_default/requirements.yml b/molecule/elasticstack_default/requirements.yml index 132913cd..b4c3b736 100644 --- a/molecule/elasticstack_default/requirements.yml +++ b/molecule/elasticstack_default/requirements.yml @@ -4,7 +4,3 @@ roles: - name: geerlingguy.redis version: "1.6.0" -collections: - - community.general - - community.crypto - From 4170a1674f40018c381212d9986645041f12c1fe Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 19:09:37 +0100 Subject: [PATCH 15/25] Test --- .github/workflows/test_roles_pr.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_roles_pr.yml b/.github/workflows/test_roles_pr.yml index d23d39b2..5dd60eb6 100644 --- a/.github/workflows/test_roles_pr.yml +++ b/.github/workflows/test_roles_pr.yml @@ -45,8 +45,9 @@ jobs: # - "3.12" # - "3.13" ansible_version: - - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 + # - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 # - "ansible>=10.0,<11.0" #Correspond ansible-core>=2.17,<2.18 + - "ansible-core>=2.17,<2.18" # - "ansible>=11.0,<12.0" #Correspond ansible-core>=2.18,<2.19 # - "ansible>=12.0,<13.0" #Correspond ansible-core>=2.19,<2.20 # - "ansible>=13.0,<14.0" #Correspond ansible-core>=2.20,<2.21 @@ -73,6 +74,8 @@ jobs: - name: Test with molecule run: | + ansible --version + molecule --version molecule test -s ${{ matrix.scenario }} env: MOLECULE_DISTRO: ${{ matrix.distro }} From 222085461084008bd958cda9fba126992f21f516 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 19:25:45 +0100 Subject: [PATCH 16/25] Use the latest redis role --- molecule/elasticstack_default/requirements.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/molecule/elasticstack_default/requirements.yml b/molecule/elasticstack_default/requirements.yml index b4c3b736..266f16f2 100644 --- a/molecule/elasticstack_default/requirements.yml +++ b/molecule/elasticstack_default/requirements.yml @@ -1,6 +1,4 @@ --- roles: - # Versions 1.7.0 and 1.8.0 seem to have a problem with idempotency - - name: geerlingguy.redis - version: "1.6.0" + - geerlingguy.redis From 50df61ff4b4d6f47ad4c94abf31598b8e96539f7 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 19:41:37 +0100 Subject: [PATCH 17/25] Readd role path --- molecule/elasticstack_default/molecule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 7038de55..4606397a 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy options: role-file: requirements.yml -# roles-path: ~/.ansible/roles + roles-path: ~/.ansible/roles driver: name: docker platforms: From 8c3afca0cc0252246b8f06e9a89f4039224dccd2 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 20:17:51 +0100 Subject: [PATCH 18/25] Reuse requirements file --- molecule/elasticstack_default/collections.yml | 4 ---- molecule/elasticstack_default/molecule.yml | 4 ++-- molecule/elasticstack_default/requirements.yml | 4 ++++ 3 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 molecule/elasticstack_default/collections.yml diff --git a/molecule/elasticstack_default/collections.yml b/molecule/elasticstack_default/collections.yml deleted file mode 100644 index 554b93f4..00000000 --- a/molecule/elasticstack_default/collections.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -collections: - - community.general - - community.crypto diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 4606397a..2fd6135f 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -2,8 +2,8 @@ dependency: name: galaxy options: - role-file: requirements.yml - roles-path: ~/.ansible/roles + requirements-file: requirements.yml +# roles-path: ~/.ansible/roles driver: name: docker platforms: diff --git a/molecule/elasticstack_default/requirements.yml b/molecule/elasticstack_default/requirements.yml index 266f16f2..2722df8a 100644 --- a/molecule/elasticstack_default/requirements.yml +++ b/molecule/elasticstack_default/requirements.yml @@ -2,3 +2,7 @@ roles: - geerlingguy.redis +collections: + - community.general + - community.crypto + From b07e5c0c7ef27c89088bf65478bb130513c43838 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 21:23:31 +0100 Subject: [PATCH 19/25] Try to fix role path in molecule --- molecule/elasticstack_default/molecule.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 2fd6135f..6dcd559a 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -2,6 +2,7 @@ dependency: name: galaxy options: + role-file: requirements.yml requirements-file: requirements.yml # roles-path: ~/.ansible/roles driver: @@ -33,6 +34,8 @@ platforms: pre_build_image: true provisioner: name: ansible + env: + ANSIBLE_ROLES_PATH: $MOLECULE_EPHEMERAL_DIRECTORY/roles:${HOME}/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:$ANSIBLE_HOME/roles inventory: host_vars: elasticstack${ELASTIC_RELEASE}-cluster2-${MOLECULE_DISTRO}: From e0f4c7c0bed0ebb24a9207761491ff11a2ede7c9 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 21:49:56 +0100 Subject: [PATCH 20/25] Try to fix role path in molecule --- ansible.cfg | 4 ++++ molecule/elasticstack_default/molecule.yml | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 ansible.cfg diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 00000000..1490af98 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,4 @@ +[defaults] + +roles_path = ./roles +collections_paths = ./collections diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 6dcd559a..e75186ea 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -34,8 +34,9 @@ platforms: pre_build_image: true provisioner: name: ansible - env: - ANSIBLE_ROLES_PATH: $MOLECULE_EPHEMERAL_DIRECTORY/roles:${HOME}/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:$ANSIBLE_HOME/roles + config_options: + defaults: + roles_path: "../../roles:~/.ansible/roles:/usr/share/ansible/roles" inventory: host_vars: elasticstack${ELASTIC_RELEASE}-cluster2-${MOLECULE_DISTRO}: From ce1293a23f0cf28088c7965e9056f381e36dfeb1 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 21:59:38 +0100 Subject: [PATCH 21/25] Try to fix role path in molecule --- ansible.cfg => .ansible.cfg | 0 molecule/elasticstack_default/molecule.yml | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) rename ansible.cfg => .ansible.cfg (100%) diff --git a/ansible.cfg b/.ansible.cfg similarity index 100% rename from ansible.cfg rename to .ansible.cfg diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index e75186ea..245feb82 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -34,9 +34,8 @@ platforms: pre_build_image: true provisioner: name: ansible - config_options: - defaults: - roles_path: "../../roles:~/.ansible/roles:/usr/share/ansible/roles" + env: + ANSIBLE_ROLES_PATH: $MOLECULE_EPHEMERAL_DIRECTORY/roles:${HOME}/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:$MOLECULE_PROJECT_DIRECTORY/roles inventory: host_vars: elasticstack${ELASTIC_RELEASE}-cluster2-${MOLECULE_DISTRO}: From a71f1100376ebea8417f68f7c83e15db57ed6115 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 22:09:37 +0100 Subject: [PATCH 22/25] Remove role path --- molecule/elasticstack_default/molecule.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 245feb82..404f2ecf 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -2,7 +2,6 @@ dependency: name: galaxy options: - role-file: requirements.yml requirements-file: requirements.yml # roles-path: ~/.ansible/roles driver: From 221cc39473e81a9f55777331b6f3658e84618d8e Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 22:31:05 +0100 Subject: [PATCH 23/25] Remove ansible.cfg --- .ansible.cfg | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 .ansible.cfg diff --git a/.ansible.cfg b/.ansible.cfg deleted file mode 100644 index 1490af98..00000000 --- a/.ansible.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[defaults] - -roles_path = ./roles -collections_paths = ./collections From 447eb795c220e74eab59174bac54ea6c8b562b48 Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Sun, 15 Mar 2026 22:48:05 +0100 Subject: [PATCH 24/25] * Come back to compatible ansible version with rocky8 * Update roles path --- .github/workflows/test_roles_pr.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test_roles_pr.yml b/.github/workflows/test_roles_pr.yml index 5dd60eb6..c072c462 100644 --- a/.github/workflows/test_roles_pr.yml +++ b/.github/workflows/test_roles_pr.yml @@ -45,9 +45,8 @@ jobs: # - "3.12" # - "3.13" ansible_version: - # - "ansible>=9.0,<10.0" #Correspond ansible-core>=2.16,<2.17 + - "ansible-core>=2.16,<2.17" # Correspond "ansible>=9.0,<10.0" # - "ansible>=10.0,<11.0" #Correspond ansible-core>=2.17,<2.18 - - "ansible-core>=2.17,<2.18" # - "ansible>=11.0,<12.0" #Correspond ansible-core>=2.18,<2.19 # - "ansible>=12.0,<13.0" #Correspond ansible-core>=2.19,<2.20 # - "ansible>=13.0,<14.0" #Correspond ansible-core>=2.20,<2.21 From 6d7b0271e4b628827043de34513b63e54b58be1b Mon Sep 17 00:00:00 2001 From: Afeef Ghannam Date: Mon, 16 Mar 2026 00:04:12 +0100 Subject: [PATCH 25/25] Update role path. Pinning crypto collection --- molecule/elasticstack_default/molecule.yml | 4 ++-- molecule/elasticstack_default/requirements.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/molecule/elasticstack_default/molecule.yml b/molecule/elasticstack_default/molecule.yml index 404f2ecf..c94b8f3a 100644 --- a/molecule/elasticstack_default/molecule.yml +++ b/molecule/elasticstack_default/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy options: requirements-file: requirements.yml -# roles-path: ~/.ansible/roles + # roles-path: ~/.ansible/roles driver: name: docker platforms: @@ -34,7 +34,7 @@ platforms: provisioner: name: ansible env: - ANSIBLE_ROLES_PATH: $MOLECULE_EPHEMERAL_DIRECTORY/roles:${HOME}/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:$MOLECULE_PROJECT_DIRECTORY/roles + ANSIBLE_ROLES_PATH: $MOLECULE_EPHEMERAL_DIRECTORY/roles:${HOME}/.ansible/roles:$MOLECULE_PROJECT_DIRECTORY/roles inventory: host_vars: elasticstack${ELASTIC_RELEASE}-cluster2-${MOLECULE_DISTRO}: diff --git a/molecule/elasticstack_default/requirements.yml b/molecule/elasticstack_default/requirements.yml index 2722df8a..78e8b6f7 100644 --- a/molecule/elasticstack_default/requirements.yml +++ b/molecule/elasticstack_default/requirements.yml @@ -4,5 +4,6 @@ roles: collections: - community.general - - community.crypto + - name: community.crypto + version: ">=2.15.0,<3.0.0" # Support python 3.6 on target host e.g. Rocky 8