Thanks & Regards,
Team,
Can someone provide me solution to copy all source /tmp/*.exe files to local Ansible machine.
I tried below solution but its not working.- name: example copying file with owner and permissions
fetch:
src: /tmp/*.exe
dest: /tmp/test/
flat: yes
owner: root
group: root
mode: 0777
Please describe what do you mean by not working. Do you get any error message? Describe the expected and actual results.
-
Sudheer S
Based on v2.8, I don’t think you can wildcard filenames with fetch and it doesn’t seem to have owner, group or mode parameters (like copy) either. I think this discussion about a “wrapper” script or using the alternative synchronise module may help with your particular query though?:
Also, this link with all module details:
https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html
Regards
Phil
--
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 post to this group, send email to
ansible...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2b80c596-6d7d-925b-a9b7-dfe671ccb5e7%40techchorus.net.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ae54a7165367491d94e585b13ba3de3a%40bham.ac.uk.