[jenkins@geppetto ~]$ ansible --version ansible 1.7 (devel d314f1b038) last updated 2014/05/07 15:38:39 (GMT +200) [jenkins@geppetto ~]$
Op vrijdag 23 mei 2014 12:21:30 UTC+2 schreef Vincent Van der Kussen: > > Which version of Ansible is this? > > On Fri, May 23, 2014 at 12:19 PM, Joost Ringoot > <[email protected]<javascript:>> > wrote: > > No difference: > > > > [jenkins@geppetto ~]$ ansible -vvv cal-25 -m ping -u jenkins > --ask-sudo-pass > > sudo password: > > <cal-25> ESTABLISH CONNECTION FOR USER: root on PORT 22 TO cal-25 > > cal-25 | FAILED => FAILED: Authentication failed. > > [jenkins@geppetto ~]$ > > > > > > Local sudo actions work with user jenkins, I don't think the problem is > > there. > > > > [root@cal-25 ~]# grep SOFTWARE /etc/sudoers > > Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum > > # %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, > PROCESSES, > > LOCATE, DRIVERS > > jenkins ALL=(root) NOPASSWD: SOFTWARE > > [root@cal-25 ~]# grep jenkins /etc/sudoers > > #stuff for jenkins and ansible > > jenkins ALL=(root) NOPASSWD: SOFTWARE > > [root@cal-25 ~]# > > > > > > Anyway thanks for looking into it Vincent and Serge > > > > > > Op vrijdag 23 mei 2014 11:50:31 UTC+2 schreef Vincent Van der Kussen: > >> > >> What if you specify --ask-sudo-pass ? > >> > >> On Fri, May 23, 2014 at 11:47 AM, Joost Ringoot <[email protected]> > wrote: > >> > I explicitly defined remote_user as jenkins, it still wants to use > root, > >> > any > >> > ideas?: > >> > > >> > > >> > > >> > > >> > [jenkins@geppetto ~]$ cat ~/.ansible.cfg > >> > [defaults] > >> > log_path=/home/jenkins/.ansible/var/log/ansible.log > >> > remote_user = jenkins > >> > sudo_user = root > >> > > >> > [jenkins@geppetto ~]$ ansible -vvv cal-25 -m ping -u jenkins > >> > <cal-25> ESTABLISH CONNECTION FOR USER: root on PORT 22 TO cal-25 > >> > cal-25 | FAILED => FAILED: Authentication failed. > >> > [jenkins@geppetto ~]$ cat /home/jenkins/.ansible/var/log/ansible.log > >> > 2014-05-23 11:47:08,693 p=4285 u=jenkins | > >> > 2014-05-23 11:47:08,693 p=4285 u=jenkins | /opt/ansible/bin/ansible > -vvv > >> > cal-25 -m ping -u jenkins > >> > 2014-05-23 11:47:08,694 p=4285 u=jenkins | > >> > 2014-05-23 11:47:08,755 p=4285 u=jenkins | <cal-25> ESTABLISH > CONNECTION > >> > FOR > >> > USER: root on PORT 22 TO cal-25 > >> > 2014-05-23 11:47:09,048 p=4285 u=jenkins | cal-25 | FAILED => FAILED: > >> > Authentication failed. > >> > [jenkins@geppetto ~]$ > >> > > >> > > >> >> > >> >> > >> > -- > >> > 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/27043463-dceb-4e21-9099-215f821d91c5%40googlegroups.com. > > > >> > > >> > For more options, visit https://groups.google.com/d/optout. > > > > -- > > 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] <javascript:>. > > To post to this group, send email to > > [email protected]<javascript:>. > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/007ee34c-b50d-49df-8734-327819ca4b70%40googlegroups.com. > > > > > > For more options, visit https://groups.google.com/d/optout. > -- 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/77f7074d-3aec-4040-983d-5e302b8fdbbb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
