check if a service is enabled : ansible - reddit
www.reddit.com › r › ansibleAnsible is for setting a state, not so much for checking. The service module will help you there. If you want to check, a simple shell script will be the better solution. 0 level 2 [deleted] · 2y he could probably use the service module to start the service. add a check option to not start the service if it wasn't.