From b88c60d07fa03406f5d4e5fb303f7cb643c7212a Mon Sep 17 00:00:00 2001 From: koralowiec Date: Tue, 17 Jun 2025 06:17:44 +0000 Subject: [PATCH 1/5] test: update privileges for molecule's container --- molecule/default/molecule.yml | 54 ++++++++++++++++------------------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 3e1b941..4f4b894 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -1,30 +1,26 @@ --- - dependency: - name: galaxy - driver: - name: docker - platforms: - - &instance - name: instance-r - image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest" - command: ${MOLECULE_DOCKER_COMMAND:-""} - volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro - capabilities: - - SYS_ADMIN - pre_build_image: true - platform: linux/amd64 - - <<: *instance - name: instance-r-rh - image: "registry.access.redhat.com/${MOLECULE_DISTRO:-ubi9}/ubi-init" - command: "/usr/sbin/init" - volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:rw - privileged: true - cgroupns_mode: host - provisioner: - name: ansible - playbooks: - prepare: prepare.yml - converge: converge.yml - verify: verify.yml \ No newline at end of file +dependency: + name: galaxy +driver: + name: docker +platforms: + - &instance + name: instance-r + image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest" + command: ${MOLECULE_DOCKER_COMMAND:-""} + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:rw + privileged: true + cgroupns_mode: host + pre_build_image: true + platform: linux/amd64 + - <<: *instance + name: instance-r-rh + image: "registry.access.redhat.com/${MOLECULE_DISTRO:-ubi8}/ubi-init" + command: "/usr/sbin/init" +provisioner: + name: ansible + playbooks: + prepare: prepare.yml + converge: converge.yml + verify: verify.yml From de585dc0b24c9e6b38c31ab9f438f358281b6970 Mon Sep 17 00:00:00 2001 From: koralowiec Date: Tue, 17 Jun 2025 06:18:28 +0000 Subject: [PATCH 2/5] chore: bump version of ansible-lint pre-commit hook --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 653a059..722f310 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - id: shell-lint - repo: https://github.com/ansible-community/ansible-lint - rev: v5.4.0 + rev: v25.4.0 hooks: - id: ansible-lint From a1e92cd670eb2cdb768e3955a7253747fdc47078 Mon Sep 17 00:00:00 2001 From: koralowiec Date: Tue, 17 Jun 2025 06:24:36 +0000 Subject: [PATCH 3/5] feat: add missing platforms/versions in meta --- meta/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/main.yml b/meta/main.yml index 08d0033..dae036d 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -11,6 +11,11 @@ galaxy_info: - name: Ubuntu versions: - focal + - jammy + - noble + - name: EL + versions: + - "8" galaxy_tags: - development - system From 1068559810f96367c280be8561516b65335b4d4c Mon Sep 17 00:00:00 2001 From: koralowiec Date: Tue, 17 Jun 2025 06:25:23 +0000 Subject: [PATCH 4/5] ci: run molecule for jammy and noble --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2811ed..cfd73ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,8 @@ jobs: matrix: include: - distro: ubuntu2004 + - distro: ubuntu2204 + - distro: ubuntu2404 - distro: ubi8 platform: instance-r-rh - distro: ubi9 From 10b8986f4ffb0b0563269c8a6e7bcde09b6a0221 Mon Sep 17 00:00:00 2001 From: koralowiec Date: Tue, 17 Jun 2025 06:36:47 +0000 Subject: [PATCH 5/5] ci: allow to run molecule workflow manually --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfd73ed..562bc9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ name: CI - main schedule: - cron: '30 1 * * 3' + workflow_dispatch: jobs: