I hve ssh-agent running and tested with it:

[root@ansible-wdc-1 ~]# ssh-add -l
2048 54::xxxxxxxxxx /home/ansible_user/.ssh/pk_ansible_user_rsa (RSA)
[root@ansible-wdc-1 ~]# ssh [email protected]
Last login: Wed Aug 26 08:57:13 2015 from 108.168.174.114
[ansible_user@apps06 ~]$


But still cannot run my playbooks. Or ansible oneliners:

[root@ansible-wdc-1 ~]# ansible -vvv all -m ping -l apps06*
<10.80.224.6> ESTABLISH CONNECTION FOR USER: ansible_user
<10.80.224.6> REMOTE_MODULE ping
<10.80.224.6> EXEC ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o 
StrictHostKeyChecking no -o 
ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o 
IdentityFile="/home/ansible_user/.ssh/pk_ansible_user_rsa" -o 
KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o User=ansible_user -o ConnectTimeout=10 
10.80.224.6 /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 
/usr/bin/python'
apps06.sampledom.com | FAILED => SSH Error: data could not be sent to the 
remote host. Make sure this host can be reached over ssh




The long story is that I inherited this box and realize now there was some 
kind of special sauce to get this to work. My overall goal is to tease the 
Ansible and Jenkins setup off of this box (which does about 30 other 
things) and give the Ansible/jenkins/ git procs a new home.

For now I need to get this to work again on this less than optimal system.

My underlying ssh works fine but the way I have Ansible setup I am not able 
to connect over ssh.

What should I read beyond
http://www.ansible.com/how-ansible-works

to get Ansible to work with underlying ssh? 

thank you

Michael





On Tuesday, August 25, 2015 at 11:56:48 PM UTC-4, Michael Bubb wrote:
>
> Hello 
>
> I recently upgraded ssh and broke my Ansible setup.
>
> ssh to the target works using the same creds:
>
> # ssh -i /home/ansible_user/.ssh/pk_ansible_user_rsa 
> [email protected]
> Last login: Tue Aug 25 23:07:38 2015 from 108.x.x.x
> [ansible_user@apps05 ~]$
> [ansible_user@apps05 ~]$ logout
> Connection to apps05.somedomain.com closed.
>
>
> But when I attempt 
>
> ansible or ansible-playbook I get the following:
>
> # ansible-playbook -vvvv 
> /etc/ansible/ansible-modules/iptables_add_rules.yml -s -C -l 
> apps05.somedomain.com
>
> PLAY [Iptables setup] 
> *********************************************************
>
> GATHERING FACTS 
> ***************************************************************
> <10.80.224.12> ESTABLISH CONNECTION FOR USER: ansible_user
> <10.80.224.12> REMOTE_MODULE setup CHECKMODE=True
> <10.80.224.12> EXEC ssh -C -vvv -o ControlMaster=auto -o 
> ControlPersist=60s -o StrictHostKeyChecking no -o 
> ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=22 -o 
> IdentityFile="/home/ansible_user/.ssh/pk_ansible_user_rsa" -o 
> KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=ansible_user -o ConnectTimeout=10 
> 10.80.224.12 /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, 
> key=xxxxxxxxxx] password: " -u root /bin/sh -c '"'"'echo 
> BECOME-SUCCESS-xxxxxxxxxxxxxxxxg; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 
> /usr/bin/python'"'"''
> fatal: [apps05.somedomain.com] => SSH Error: data could not be sent to 
> the remote host. Make sure this host can be reached over ssh
>
>
>
>
> my ansible.cfg looks like:
>
> [defaults]
> hostfile       = /etc/ansible/hosts
> library        = /usr/share/ansible
> remote_tmp     = $HOME/.ansible/tmp
> pattern        = *
> forks          = 5
> poll_interval  = 15
> sudo_user      = root
> transport      = smart
> remote_port    = 22
> roles_path    = 
> /etc/ansible/ansible-modules/roles:/etc/ansible/ansible-galaxy
> sudo_exe = sudo
> timeout = 10
> remote_user = ansible_user
> log_path = /var/log/ansible.log
> private_key_file = /home/ansible_user/.ssh/pk_ansible_user_rsa
> ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by 
> {uid} on {host}
> action_plugins     = /usr/share/ansible_plugins/action_plugins
> callback_plugins   = /usr/share/ansible_plugins/callback_plugins
> connection_plugins = /usr/share/ansible_plugins/connection_plugins
> lookup_plugins     = /usr/share/ansible_plugins/lookup_plugins
> vars_plugins       = /usr/share/ansible_plugins/vars_plugins
> filter_plugins     = /usr/share/ansible_plugins/filter_plugins
> [paramiko_connection]
> [ssh_connection]
> ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o 
> StrictHostKeyChecking no
> pipelining = True
> scp_if_ssh = True
> [accelerate]
> accelerate_port = 5099
> accelerate_timeout = 30
> accelerate_connect_timeout = 5.0
>
>
>
> I am at a loss... 
>
>
> yrs
>
> Michael
>

-- 
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/de2023d8-2795-470b-b889-2b6264a3e993%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to