Hi everybody,
I'm creating a playbook to install jenkins LTS (
http://pkg.jenkins-ci.org/debian-stable/) on Debian Jessie. Everything
seems to be working fine except when I try to disable the jenkins. I using
Debian Jessie on mgmt and Jessie nodes:
vagrant@mgmt:~$ ansible --version
ansible 1.9.3
configured module search path = None
vagrant@mgmt:~$ ssh jenkins "sudo -u root chkconfig jenkins"
jenkins on
vagrant@mgmt:~$ ansible -m service -a "name=jenkins enabled=no" jenkins -vv
-s
<jenkins> REMOTE_MODULE service name=jenkins enabled=no
jenkins | success >> {
"changed": false,
"enabled": false,
"name": "jenkins"
}
vagrant@mgmt:~$ ssh jenkins "sudo -u root chkconfig jenkins"
jenkins on
vagrant@mgmt:~$ ssh jenkins "sudo -u root chkconfig jenkins off"
vagrant@mgmt:~$ ansible -m service -a "name=jenkins enabled=yes" jenkins -vv
-s
<jenkins> REMOTE_MODULE service name=jenkins enabled=yes
jenkins | success >> {
"changed": true,
"enabled": true,
"name": "jenkins"
}
vagrant@mgmt:~$ ssh jenkins "sudo -u root chkconfig jenkins"
jenkins on
vagrant@mgmt:~$ ansible -m service -a "name=jenkins enabled=no" jenkins -vv
-s
<jenkins> REMOTE_MODULE service name=jenkins enabled=no
jenkins | success >> {
"changed": false,
"enabled": false,
"name": "jenkins"
}
vagrant@mgmt:~$ ssh jenkins "sudo -u root chkconfig jenkins"
jenkins on
I repeated the same test using a distro package and everything seems to be
working fine:
vagrant@mgmt:~$ ssh jenkins "sudo -u root chkconfig nginx"
nginx on
vagrant@mgmt:~$ ansible -m service -a "name=nginx enabled=no" jenkins -vv -s
<jenkins> REMOTE_MODULE service name=nginx enabled=no
jenkins | success >> {
"changed": true,
"enabled": false,
"name": "nginx"
}
vagrant@mgmt:~$ ssh jenkins "sudo -u root chkconfig nginx"
nginx off
vagrant@mgmt:~$ ansible -m service -a "name=nginx enabled=yes" jenkins -vv -
s
<jenkins> REMOTE_MODULE service name=nginx enabled=yes
jenkins | success >> {
"changed": true,
"enabled": true,
"name": "nginx"
}
vagrant@mgmt:~$ ssh jenkins "sudo -u root chkconfig nginx"
nginx on
So my question is: What do ansible do to disable services on Debian Jessie?
How can i debug this issue? I tried with "-vvv" but I didn't get any useful
information.
I presume that there may be a bug on the jenkins debian package but I need
more info to try to fix it.
Thanks in advance,
Alfredo
--
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/65b29a8e-10b7-4470-b002-3d33b8391fff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.