Well....
do you nodes have the same ssh key?
is ubuntu your remote_user ?
is ~ubuntu/.ansible writable/readable?

Better yet, can you show us your playbook and the task it is failing on?
Best,
--
E

On Friday, January 22, 2016 at 7:33:29 AM UTC-8, 
[email protected] wrote:
>
> Hello,
>
> I'm using the Amazon Dynamic inventory script from here 
> <http://docs.ansible.com/ansible/intro_dynamic_inventory.html#example-aws-ec2-external-inventory-script>.
>  
> I've created some instances on EC2, and have given all of them a custom tag 
> called Purpose, with a value like NodePurpose, and instance names Node1, 
> Node2 etc.
>
> I've written a playbook with:
>
> ---
> hosts: tag_Purpose_NodePurpose
>
> so that the playbook points to all the abovementioned nodes. When more 
> than one node is up, I get random SSH errors from some or all of the nodes, 
> with this message:
>
> ERROR! failed to transfer file to 
>> /home/ubuntu/.ansible/tmp/ansible-tmp-1453475788.15-95937026898429/setup:
>>
>  
>
> sftp> put /tmp/tmpIwd28M 
>> /home/ubuntu/.ansible/tmp/ansible-tmp-1453475788.15-95937026898429/setup
>> OpenSSH_6.7p1 Debian-5+deb8u1, OpenSSL 1.0.1k 8 Jan 2015
>> debug1: Reading configuration data /etc/ssh/ssh_config
>> debug1: /etc/ssh/ssh_config line 19: Applying options for *
>> debug1: auto-mux: Trying existing master
>> debug2: fd 3 setting O_NONBLOCK
>> debug2: mux_client_hello_exchange: master version 4
>> debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
>> debug3: mux_client_request_session: entering
>> debug3: mux_client_request_alive: entering
>> debug3: mux_client_request_alive: done pid = 10523
>> debug3: mux_client_request_session: session request sent
>> debug1: mux_client_request_session: master session id: 4
>> debug2: Remote version: 3
>> debug2: Server supports extension "[email protected] <javascript:>" 
>> revision 1
>> debug2: Server supports extension "[email protected] <javascript:>" 
>> revision 2
>> debug2: Server supports extension "[email protected] <javascript:>" 
>> revision 2
>> debug2: Server supports extension "[email protected] <javascript:>" 
>> revision 1
>> debug2: Server supports extension "[email protected] <javascript:>" 
>> revision 1
>> debug3: Sent message fd 5 T:16 I:1
>> debug3: SSH_FXP_REALPATH . -> /home/ubuntu size 0
>> debug3: Looking up /tmp/tmpIwd28M
>> debug3: Sent message fd 5 T:17 I:2
>> debug3: Received stat reply T:101 I:2
>> debug1: Couldn't stat remote file: No such file or directory
>> debug3: Sent message SSH2_FXP_OPEN I:3 
>> P:/home/ubuntu/.ansible/tmp/ansible-tmp-1453475788.15-95937026898429/setup
>> remote 
>> open("/home/ubuntu/.ansible/tmp/ansible-tmp-1453475788.15-95937026898429/setup"):
>>  
>> No such file or directory
>> debug3: mux_client_read_packet: read header failed: Broken pipe
>> debug2: Received exit status from master 0
>
>
> It seems like ansible is looking for a tmp file that only exists on one 
> instance, on other instances, too, and of course, it's not there. This has 
> happened with all versions since 1.7, and with various versions of the 
> ec2.py script (I've updated it from time to time).
>
> Anyone have any idea what this is about and how to solve it?
>
> Alexander
>
>

-- 
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/322438bb-40f8-4586-9b0d-68331ce4854f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to