Hello, Is there a specific importance to knowing this? Ansible can be set to start a process if its not running and also add the chkconfig as needed.
# Example action to start service httpd, if not running- service: name=httpd state=started enabled=yes Should be enough to resolve it for you. On Wednesday, August 3, 2016 at 6:23:52 PM UTC-4, wiggler wrote: > > Hello all, > > I would like to automate the checking of the services if is it properly > chkconfig on and set to on if its off and start. also need to check if the > service is on then start if its off in RHEL6. > > Thanks. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/83c66448-dffb-4703-8eca-dba8ab13757c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
