Ich habe einen Systemdienst mit dem Namen cooltoo_storage auf Centos erstellt. Ich kann den Dienst starten/stoppen/neu starten, indem ich den Befehl "service cooltoo_storage start/stop/restart" ausführen. Jetzt möchte ich es auf ansible playbook konfigurieren. Unten ist meine Konfiguration für den Start dieses Dienstes.Fehler beim Starten des Systemdienstes auf Centos mit ansible-playbook
- name: start cooltoo_storage service
sudo: yes
service:
name: cooltoo_storage
state: started
Nach dem ansible-Playbook läuft, ich unten Fehler bekam
msg: Job for cooltoo_storage.service failed because the control process exited with error code. See "systemctl status cooltoo_storage.service" and "journalctl -xe" for details.
FATAL: all hosts have already failed -- aborting
Im Folgenden finden Sie die Befehlsausgabe von "systemctl Status cooltoo_storage.service",
● cooltoo_storage.service - LSB: cooltoo storage provider
Loaded: loaded (/etc/rc.d/init.d/cooltoo_storage)
Active: failed (Result: exit-code) since Mon 2016-05-02 11:39:07 CST; 1min 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 26661 ExecStart=/etc/rc.d/init.d/cooltoo_storage start (code=exited, status=203/EXEC)
May 02 11:39:07 Cool-Too systemd[1]: Starting LSB: cooltoo storage provider...
May 02 11:39:07 Cool-Too systemd[26661]: Failed at step EXEC spawning /etc/rc.d/init.d/cooltoo_storage: Exec format error
May 02 11:39:07 Cool-Too systemd[1]: cooltoo_storage.service: control process exited, code=exited status=203
May 02 11:39:07 Cool-Too systemd[1]: Failed to start LSB: cooltoo storage provider.
May 02 11:39:07 Cool-Too systemd[1]: Unit cooltoo_storage.service entered failed state.
May 02 11:39:07 Cool-Too systemd[1]: cooltoo_storage.service failed.
Wie soll ich das beheben dieses Problem?