haxorof/ansible-role-docker-ce

Service module fail on WSL2 with Ubuntu 20.04

haxorof opened this issue · 1 comments

Version Information

Ansible: core 2.12.4
Role: 3.7.0

Steps to Reproduce

Run simplest possible playbook to install Docker with this role in WSL2 with distribution Ubuntu 20.04

Expected Behavior

Docker successfully installed and started

Actual Behavior

Any task using service will fail with:

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Service is in unknown state", "status": {}}

References

Tested to set use: service on the service module and that worked around the problem.