Let me add few more thins and answer to my question.

I have run this on three machines.

Ubuntu 13.04 - Ansible 1.5.3 error was:

PUT /tmp/tmpxFGcNu TO 
> /tmp/ansible/ansible-tmp-1395837087.32-71225947296118/setup
>
ec2-xx-xx-xx-xx.compute-1.amazonaws.com | FAILED => failed to transfer file 
> to /tmp/ansible/ansible-tmp-

1395837087.32-71225947296118/setup:

 
>
Couldn't read packet: Connection reset by peer 
>

Mac OSX - Ansible 1.4.4:

| FAILED => failed to transfer file to 
/home/admin/.ansible/tmp/ansible-1395838813.75-19289519445016/setup:
>
> ControlPath 
> "/Users/marko/.ansible/cp/ansible-ssh-ec2-54-236-227-155.compute-1.amazonaws.com-22-admin.MEUoiLFZkgoecYzU"
>  too long for Unix domain socket
> subsystem request failed on channel 0
> Connection closed
>
>  


And Debian 7.1 - Ansible 1.6:


failed to open a SFTP connection (Channel closed.)
>

I have enable scp_if_ssh = True
 and all went well.

Is it only version issue woth dofferent error messages?


On Wednesday, March 26, 2014 1:39:35 PM UTC+1, Marko Lisica wrote:
>
> Hi,
>
> I've ran to a problem provisioning one host.
>
> I have playbook that successfully provisions vagrant box, but running that 
> on amazon host I get this
>
> PUT /tmp/tmpxFGcNu TO 
>> /tmp/ansible/ansible-tmp-1395837087.32-71225947296118/setup
>>
> ec2-xx-xx-xx-xx.compute-1.amazonaws.com | FAILED => failed to transfer 
>> file to /tmp/ansible/ansible-tmp-1395837087.32-71225947296118/setup:
>>
>  
>
>> Couldn't read packet: Connection reset by peer
>>
>
> When I check out tmp dir on remote host I see directiories are created by 
> ansible but no file inside.
>
> Here is complete output:
>
>
> ansible all -i provision/staging -m setup --private-key=staging-micro.cer 
>> -vvvvvv
>> <ec2-xx-xx-xx-xx.compute-1.amazonaws.com> ESTABLISH CONNECTION FOR USER: 
>> admin
>> <ec2-xx-xx-xx-xx.compute-1.amazonaws.com> REMOTE_MODULE setup
>> <ec2-xx-xx-xx-xx.compute-1.amazonaws.com> EXEC ['ssh', '-C', '-tt', 
>> '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 
>> 'ControlPath=/home/marko/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
>> 'Port=22', '-o', 'IdentityFile=staging-micro.cer', '-o', 
>> 'KbdInteractiveAuthentication=no', '-o', 
>> 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
>> '-o', 'PasswordAuthentication=no', '-o', 'User=admin', '-o', 
>> 'ConnectTimeout=10', 'ec2-xx-xx-xx-xx.compute-1.amazonaws.com', "/bin/sh 
>> -c 'mkdir -p /tmp/ansible/ansible-tmp-1395837087.32-71225947296118 && chmod 
>> a+rx /tmp/ansible/ansible-tmp-1395837087.32-71225947296118 && echo 
>> /tmp/ansible/ansible-tmp-1395837087.32-71225947296118'"]
>> <ec2-xx-xx-xx-xx.compute-1.amazonaws.com> PUT /tmp/tmpxFGcNu TO 
>> /tmp/ansible/ansible-tmp-1395837087.32-71225947296118/setup
>> ec2-xx-xx-xx-xx.compute-1.amazonaws.com | FAILED => failed to transfer 
>> file to /tmp/ansible/ansible-tmp-1395837087.32-71225947296118/setup:
>>
>> Couldn't read packet: Connection reset by peer
>>
>
>

-- 
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/44b66ae0-bfdc-4ba7-9c9d-1cc4d011789f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to