I want to get service like redis-server
running status by Ansible.
I know how to use Ansible service module to stop or start system service. But how can I get the current service status?
I want to get service like redis-server
running status by Ansible.
I know how to use Ansible service module to stop or start system service. But how can I get the current service status?
you can do this by ansible AD-HOC command: