I am in need of a ansbile play to check the status of a service in CENTOS 7 / RHEL
Expected output:
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2016-11-22 12:24:02 EST; 1 months 20 days ago
Docs: https://docs.docker.com
Main PID: 815 (dockerd)
Memory: 65.3M
CGroup: /system.slice/docker.service
├─ 815 /usr/bin/dockerd