I'm preparing some Ansible roles to open their source code by adding Molecule tests.

As always, @geerlingguyJeff Geerling has wonderful content for that 馃檹

- github.com/geerlingguy/ansible
- jeffgeerling.com/blog/2018/tes
- github.com/geerlingguy/docker-

I can't manage to run systemd commands in my docker setup ("Service is in unknown state"). When I start a container manually, I can use systemctl. But it fails when Molecule creates the container.

Any idea?

molecule.yml:

```
driver:
name: docker

platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRIB:-debian12}-ansible:latest"
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true

provisioner:
name: ansible
env:
ANSIBLE_ROLES_PATH: ../../../../roles
```

0

If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/jriou/statuses/115796104685647048 on your instance and quote it. (Note that quoting is not supported in Mastodon.)