-
Notifications
You must be signed in to change notification settings - Fork 1.9k
service module broken by installation of systemd on ubuntu #161
Comments
Hey, I am unable to reproduce your issue, I installed ubuntu 14.10 x64, with ssh-server, nothing else. My ansible host is Centos7 with ansible 1.7.2, my target was ubuntu 14.10. I used the following playbook
ansible-playbook -i hosts systemd.yml PLAY [systemd test] *********************************************************** GATHERING FACTS *************************************************************** TASK: [systemd | Install systemd] ********************************************* TASK: [systemd | Install server-redis] **************************************** TASK: [systemd | Restart redis-server] **************************************** PLAY RECAP ******************************************************************** |
Looks like it's only the Reproduction:
|
Same problem, different services (bind,ssh,ntp), and "enabled=yes", control machine is a mac, client is running utopic. Running ansible from git checkout, today: failed: [MY_CLIENT] => {"failed": true} state= works fine, but enabled= is broken. |
Confirmed broken using the very latest service from devel.
|
Is there a workaround? |
Yes, I wrote a fix, #232 is the fix, we just need Ansible to merge the code. In the meantime, you can grab this code. |
I would call that a fix not a workaround :) On Wed Nov 05 2014 at 11:20:06 PM Jonathan Mainguy notifications@github.com
|
Just to help someone who may still be struggling with this before the fix is available in pip: Uninstall systemd |
Issue Type: Bug Report
Ansible Version: ansible 1.7.2+dfsg-1 (utopic package)
Environment: Ubuntu Utopic (14.10, currently beta) amd64, both, simple install (bash, ssh-keys, ...)
Summary:
If you install the
systemd
package on Ubuntu (Utopic / 14.10), the service module stops working:Steps To Reproduce:
Expected Results:
It believes that, just because
systemctl
is on the path, and there's a file named/lib/systemd/system/redis-server.service
, that theredis-server
package is managed bysystemd
. However, the system is usingupstart
for service management, and I believe Ubuntu will be doing so for a long time.Ironically,
systemd
is installed becauseupstart
recommends it:Perhaps checking
systemctl
actually works could work?Maybe check what
init
is?I don't have any systems with working
systemd
so I can't say what else might work.The text was updated successfully, but these errors were encountered: