Hi, how can I get the status from a service from ansible module. I can´t use service o systemctl because I have different kinds of machines with different operation systems.
Thxs a lot
As of Ansible 2.5 we now have a service_facts module that may be of use: https://docs.ansible.com/ansible/latest/modules/service_facts_module.html