Ansible fetch only fetch specific file from directory not entire directory contents

323 views
Skip to first unread message

Vivek Kothawale

unread,
Jan 6, 2020, 2:56:58 AM1/6/20
to Ansible Project

Hi Team


While working with ansible fetch feature which is one of the best feature I found in ansible, I found that ansible fetch will only pull in the single file form remote machine it can not fetch (pull) entire directory contents


form remote machine which I found while running playbook I got below message fetch cannot work on directories, not transferring, ignored",Is this some kind of ansible fetch drawback or will this be resolve in new


feature ?


Please let me know


Thanks,
Vivek

Dick Visser

unread,
Jan 6, 2020, 4:29:27 AM1/6/20
to ansible...@googlegroups.com
According to the comments on the 'src' parameter of the module on
https://docs.ansible.com/ansible/latest/modules/fetch_module.html:

The file on the remote system to fetch.
This must be a file, not a directory.
Recursive fetching may be supported in a later release.
> --
> 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 ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7d56e222-6b5d-46fb-b14d-bce093b83ba8%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

Vivek Kothawale

unread,
Jan 6, 2020, 5:21:11 AM1/6/20
to ansible...@googlegroups.com, preetes...@hotmail.com
Reply all
Reply to author
Forward
0 new messages