From e821f829529ef1cedb644d81826fa822d20d5e4b Mon Sep 17 00:00:00 2001 From: Leochocolat Date: Mon, 4 Dec 2023 16:05:51 +0100 Subject: [PATCH] fix molecule permissions --- molecule/default/molecule.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 734ad649..2fa3ca5a 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -9,47 +9,53 @@ lint: | # ansible-lint platforms: - name: postgresql-10 - image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible:latest" - command: "" + image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw privileged: true pre_build_image: true + cgroupns_mode: host + command: ${MOLECULE_DOCKER_COMMAND:-""} - name: postgresql-11 - image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible:latest" - command: "" + image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw privileged: true pre_build_image: true + cgroupns_mode: host + command: ${MOLECULE_DOCKER_COMMAND:-""} - name: postgresql-12 - image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible:latest" - command: "" + image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw privileged: true pre_build_image: true + cgroupns_mode: host + command: ${MOLECULE_DOCKER_COMMAND:-""} - name: postgresql-13 - image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible:latest" - command: "" + image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw privileged: true pre_build_image: true + cgroupns_mode: host + command: ${MOLECULE_DOCKER_COMMAND:-""} - name: postgresql-14 image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest" - command: "" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw privileged: true pre_build_image: true + cgroupns_mode: host + command: ${MOLECULE_DOCKER_COMMAND:-""} - name: postgresql-15 image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest" - command: "" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw privileged: true pre_build_image: true + cgroupns_mode: host + command: ${MOLECULE_DOCKER_COMMAND:-""} provisioner: name: ansible config_options: