Skip to content

Instantly share code, notes, and snippets.

[plove@aiadm054 ops]$ ansible -vvvv test -o --sudo -m ping
<aipanda017.cern.ch> ESTABLISH CONNECTION FOR USER: plove
<aipanda017.cern.ch> REMOTE_MODULE ping
<aipanda017.cern.ch> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/afs/cern.ch/user/p/plove/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=5', 'aipanda017.cern.ch', "/bin/sh -c 'mkdir -p /tmp/ansible/$USER/ansible-tmp-1417470380.34-257132056167384 && chmod a+rx /tmp/ansible/$USER/ansible-tmp-1417470380.34-257132056167384 && echo /tmp/ansible/$USER/ansible-tmp-1417470380.34-257132056167384'"]
aipanda017.cern.ch | FAILED => SSH encountered an unknown error. The output was:
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: auto-mux: Trying
@ptrlv
ptrlv / gist:4a8768c55a58b10a3a8c
Created December 11, 2014 14:00
Why are ssh_args ignored? Why control socket does not exist? Why bind() Operation not permitted?
$ cat ansible.cfg
[defaults]
timeout = 20
remote_tmp = /tmp/ansible/$USER
hostfile = inventory
ssh_args = foo
$ ansible -vvvv test -o --sudo -m ping
<example.com> ESTABLISH CONNECTION FOR USER: user
<example.com> REMOTE_MODULE ping

Keybase proof

I hereby claim:

  • I am ptrlv on github.
  • I am ptrlv (https://keybase.io/ptrlv) on keybase.
  • I have a public key ASDYAJhkHKUFyQJZX50z1WvL2Ses6rMMilOOD723qajZtwo

To claim this, I am signing this object: