diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 13ed0f3..19a4829 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -9,9 +9,9 @@ platforms: image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro - capabilities: - - SYS_ADMIN + - /sys/fs/cgroup:/sys/fs/cgroup:rw + privileged: true + cgroupns_mode: host pre_build_image: true platform: linux/amd64 provisioner: diff --git a/molecule/with-python/molecule.yml b/molecule/with-python/molecule.yml index f042772..0011685 100644 --- a/molecule/with-python/molecule.yml +++ b/molecule/with-python/molecule.yml @@ -8,10 +8,11 @@ platforms: image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw published_ports: - "0.0.0.0:3940:3939/tcp" privileged: true + cgroupns_mode: host pre_build_image: true provisioner: name: ansible diff --git a/molecule/with-python/prepare.yml b/molecule/with-python/prepare.yml index 9a6673d..d881973 100644 --- a/molecule/with-python/prepare.yml +++ b/molecule/with-python/prepare.yml @@ -1,5 +1,14 @@ --- - name: Prepare hosts: all - become: true - tasks: [] + tasks: + - name: Install R from package + ansible.builtin.apt: + name: r-base + update_cache: true + when: ansible_os_family == 'Debian' + + - name: Install R from package + ansible.builtin.yum: + name: R + when: ansible_os_family == 'RedHat'