# Docker cgroups2 and cgroupns support in Molecule

**URL:** <https://forum.ansible.com/t/docker-cgroups2-and-cgroupns-support-in-molecule/37130>\
**Category:** Ansible Project\
**Created:** [September 20, 2022, 10:07am UTC](https://forum.ansible.com/t/docker-cgroups2-and-cgroupns-support-in-molecule/37130 "2022-09-20T10:07:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudheer\_S](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@Sudheer\_S](https://forum.ansible.com/u/Sudheer_S)\
**Post date:** [September 20, 2022, 10:07am UTC](https://forum.ansible.com/t/docker-cgroups2-and-cgroupns-support-in-molecule/37130/1 "2022-09-20T10:07:42Z")

</div>

Hello,

I have encountered an issue with using systemd in docker. I have a role with a task like this:

- name: Start and enable apache2  
systemd:  
name: apache2  
state: started  
enabled: true

And it fails like this:

TASK [acme.molecule\_reference\_role : Start and enable apache2]
