I have used service_facts
to a check service is running and enabled. In some of the server that specific package is not installed.
Now, how can I know that this particular package is not installed on that particular server by using service_facts module
?
In an Ansible playbook it displaying the below error:
localhost | SUCCESS => {
"ansible_facts": {
"services": {
"acpid.service": {
"name": "acpid.service",
"source": "systemd",
"state": "running",
"status": "enabled"
},
"agent_installation.service": {
"name": "agent_installation.service",
"source": "systemd",
"state": "stopped",
"status": "unknown"
}, "changed": false,
"msg": "WARNING: Could not find status for all services. Sometimes this is due to insufficient privileges."
}