Skip to content

Instantly share code, notes, and snippets.

@pol
Created October 17, 2013 20:29
Show Gist options
  • Select an option

  • Save pol/7031680 to your computer and use it in GitHub Desktop.

Select an option

Save pol/7031680 to your computer and use it in GitHub Desktop.
After running through a playbook successfully, I have hit a snag, and now I can't get anything other than raw to work. Any ideas?
☺ ~/Projects/Ansible/msu_ansible ∴ ansible vhost -i development -m raw -a "hostname" -vvv -c paramiko
<biome> ESTABLISH CONNECTION FOR USER: pol on PORT 22 TO biome.rcg.montana.edu
<biome> EXEC hostname
biome | success | rc=0 >>
biome
☹ ~/Projects/Ansible/msu_ansible ∴ ansible vhost -i development -a "hostname" -vvv
<biome> ESTABLISH CONNECTION FOR USER: pol
<biome> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/tmp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=3', 'biome', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1382041514.81-116805009926217 && chmod a+rx $HOME/.ansible/tmp/ansible-1382041514.81-116805009926217 && echo $HOME/.ansible/tmp/ansible-1382041514.81-116805009926217'"]
<biome> REMOTE_MODULE command hostname
<biome> PUT /var/folders/lg/_rds9m6n12l5gkn5xgl6kpsm0000gn/T/tmpHU1CxY TO /home/pol/.ansible/tmp/ansible-1382041514.81-116805009926217/command
biome | FAILED => failed to transfer file to /home/pol/.ansible/tmp/ansible-1382041514.81-116805009926217/command:
Connection closed
☺ ~/Projects/Ansible/msu_ansible ∴ ansible vhost -i development -a "hostname" -vvv -c paramiko
<biome> ESTABLISH CONNECTION FOR USER: pol on PORT 22 TO biome
<biome> EXEC /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1382041447.43-92505371649471 && chmod a+rx $HOME/.ansible/tmp/ansible-1382041447.43-92505371649471 && echo $HOME/.ansible/tmp/ansible-1382041447.43-92505371649471'
<biome> REMOTE_MODULE command hostname
<biome> PUT /var/folders/lg/_rds9m6n12l5gkn5xgl6kpsm0000gn/T/tmpWyXUF7 TO /home/pol/.ansible/tmp/ansible-1382041447.43-92505371649471/command
biome | FAILED => failed to open a SFTP connection (EOF during negotiation)
☹ ~/Projects/Ansible/msu_ansible ∴ ssh biome
Last login: Thu Oct 17 14:25:14 2013 from megalith
[pol@biome:~] ls -lah .
total 68K
drwxr-xr-x 4 pol users 4.0K Oct 17 14:16 .
drwxr-xr-x 7 root root 4.0K Oct 17 14:05 ..
drwxr-xr-x 3 pol users 4.0K Oct 17 14:16 .ansible
-rw-r--r-- 1 pol users 220 Apr 10 2010 .bash_logout
-rw-r--r-- 1 pol users 3.2K Apr 10 2010 .bashrc
-rw-r--r-- 1 pol users 675 Apr 10 2010 .profile
drwx------ 2 pol users 4.0K Oct 17 14:05 .ssh
-rw-r--r-- 1 pol users 34K Oct 17 14:11 .zcompdump
-rw-r--r-- 1 pol pol 2.1K Oct 17 14:05 .zshrc
[pol@biome:~] ls -lah .ansible
total 12K
drwxr-xr-x 3 pol users 4.0K Oct 17 14:16 .
drwxr-xr-x 4 pol users 4.0K Oct 17 14:16 ..
drwxr-xr-x 10 pol users 4.0K Oct 17 14:25 tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment