I have systemd installed on debian wheezy, but most of the packages come 
with init.d scripts by default. Some services would not behave well under 
ansible management. One example is quagga.. I have:

root@server:~# systemctl status quagga.service 
quagga.service - LSB: start and stop the Quagga routing suite
   Loaded: loaded (/etc/init.d/quagga)
   Active: active (running) since Wed 2013-12-04 15:08:59 GMT; 1 weeks 1 
days ago

Dec 04 15:08:59 os-is-205-1.nje.twosigma.com quagga[3802]: Loading 
capability module if not yet done.
Dec 04 15:08:59 os-is-205-1.nje.twosigma.com quagga[3802]: Starting Quagga 
daemons (prio:10): zebra bgpd.
Dec 04 15:08:59 os-is-205-1.nje.twosigma.com watchquagga[3989]: watchquagga 
0.99.21 watching [zebra bgpd], mode [monitor]
Dec 04 15:08:59 os-is-205-1.nje.twosigma.com systemd[1]: Started LSB: start 
and stop the Quagga routing suite.
Dec 04 15:09:00 os-is-205-1.nje.twosigma.com watchquagga[3989]: zebra state 
-> up : connect succeeded
Dec 04 15:09:00 os-is-205-1.nje.twosigma.com watchquagga[3989]: bgpd state 
-> up : connect succeeded


Here is the ansible task I am running:
- name: ensure quagga is started
  service: name=quagga.service enabled=yes state=started
  remote_user: root

And the output would be:
TASK: [some-role | ensure quagga is started] ****************** 
failed: [server] => {"failed": true, "item": ""}
msg: service not found: quagga.service

I also tried to use quagga instead, but also errors out:
TASK: [some-role | ensure quagga is started] ****************** 
failed: [server] => {"failed": true, "item": ""}
msg: Loading capability module if not yet done.
Starting Quagga daemons (prio:10): zebra/usr/lib/quagga/zebra already 
running.

Any ideas?

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to