If the service does not respond to the status command, name a substring to look for as would be found in the output of the \fIps\fR command as a stand-in for a status result. If the string is found, the servie will be assumed to be running.(Added in Ansible version 0.7.)
.IPstate
\fIstarted\fR, \fIstopped\fR, \fIreloaded\fR, \fIrestarted\fR. \fIStarted\fR/\fIstopped\fR are idempotent actions that will not run commands unless necessary. \fIrestarted\fR will always bounce the service. \fIreloaded\fR will always reload.
.IRChoices:
running,started,stopped,restarted,reloaded.
.IPenabled
Whether the service should start on boot.
.IRChoices:
yes,no.
.IPname
Name of the service.(required)."
."
."------NOTES
."
."
."------EXAMPLES
.SHEXAMPLES
.PP
.nf
service name=httpd state=started
.fi
.PP
.nf
service name=httpd state=stopped
.fi
.PP
.nf
service name=httpd state=restarted
.fi
.PP
.nf
service name=httpd state=reloaded
.fi
.PP
.nf
service name=foo pattern=/usr/bin/foo state=started