[jenkins@geppetto ~]$ ssh jenkins@cal-25
Last login: Fri May 23 11:19:58 2014 from geppetto.oma.be
[jenkins@cal-25 ~]$ exit
logout
Connection to cal-25 closed.
[jenkins@geppetto ~]$ ansible cal-25 -m ping -u jenkins
cal-25 | FAILED => FAILED: Authentication failed.
[jenkins@geppetto ~]$
[jenkins@geppetto ~]$ ansible cal-25 -m ping -u jenkins
On 23 May 2014 11:24, Joost Ringoot <jrin...@gmail.com> wrote:[jenkins@geppetto ~]$ ansible cal-25 -m ping -u jenkinsCan you show the output of this, adding -vvvv ?
[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 ~]$
[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 ~]$
[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 ~]#
[jenkins@geppetto ~]$ ansible --version
ansible 1.7 (devel d314f1b038) last updated 2014/05/07 15:38:39 (GMT +200)
[jenkins@geppetto ~]$
[jenkins@geppetto ~]$ ansible --version
ansible 1.7 (devel ee82681d14) last updated 2014/05/23 12:24:44 (GMT +200)
1.6 Where can I find that? the version available in epel is 1.5.5 and on the site of ansible I only find ansible tower.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/54494f61-1322-448c-a8ae-38ff6d0794ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v8U4J7JkRyGDM%2BceeiqstaOaP6iwt0faVx3iMLjtq0_4A%40mail.gmail.com.
I'd check to see if you had defined ansible_ssh_user in inventory somewhere.If setting the user didn't work, I suspect we'd hear about it more, so I'm expecting this is something environmental.(might you have something in your SSH config?)
On Fri, May 23, 2014 at 8:11 AM, Matt Martz <ma...@sivel.net> wrote:
Also via pypi for installation with pip/easy_install
--
1.6 Where can I find that? the version available in epel is 1.5.5 and on the site of ansible I only find ansible tower.
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/54494f61-1322-448c-a8ae-38ff6d0794ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.