From 3288e04141573ad8d4c5b3fd0aa65ee11489d111 Mon Sep 17 00:00:00 2001 From: wiktor2200 Date: Tue, 28 Nov 2023 00:49:42 +0100 Subject: [PATCH] test podman priviledged setting --- .github/workflows/tests_latest.yml | 4 ++-- molecule/default/molecule.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests_latest.yml b/.github/workflows/tests_latest.yml index 29d7e30d..5f4f7422 100644 --- a/.github/workflows/tests_latest.yml +++ b/.github/workflows/tests_latest.yml @@ -43,8 +43,8 @@ jobs: - name: Run Molecule tests with Podman run: | - molecule reset - molecule test + sudo molecule reset # Run Molecule with sudo to ensure necessary permissions + sudo molecule test env: PY_COLORS: "1" ANSIBLE_FORCE_COLOR: "1" diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 8f51fcbc..51202ad8 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -4,6 +4,7 @@ dependency: name: galaxy driver: name: podman + privileged: true # Set the driver to run in privileged mode platforms: - name: instance image: "docker.io/geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" @@ -11,7 +12,6 @@ platforms: command: ${MOLECULE_COMMAND:-""} volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw - privileged: true pre_build_image: true provisioner: name: ansible