Could have done this, but simple sftp doesnt work with password provided 
over command line. needs another layer of ssh-pass / expect-send 
I am missing scp with username/password.

Last thing I can try discussing with end users is instead of user/password 
... gather all public keys of ansible-servers and add them in sftp server.



On Wednesday, November 2, 2016 at 4:49:35 PM UTC+5:30, Mehdi B wrote:
>
> You can use shell/command modules to make an sftp. What's the issue here?
>
> You can do another dirty trick use delegate to switch server but that 
> would require the server already in inventory. 
>
> So I would use shell module and run my scp the old way.
>
> M B
>
> On Wednesday, November 2, 2016 at 3:10:17 AM UTC+1, [email protected] wrote:
>>
>>
>>
>> But I want to fetch some file on ansible server every time a playbook is 
>> run. from a server thats not in inventory file.
>> I have setup a restricted user ( with password ) on sftp server.
>>
>>
>>

-- 
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/929013ea-0753-4967-bc75-f1c7a81c4a8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to