Hello all,
I want to download a file from remote servers:
- name: get the result
fetch: src=/root/result.xml
dest=/var/ansible/result-{{inventory_hostname}}.xml
fail_on_missing=yes
It looks like if '/var/ansible/result-{{inventory_hostname}}.xml' already
exists on my box, then the file won't be overwritten.
How can I do it?
# ansible --version
ansible 2.0.0 (devel be7bd392cb) last updated 2015/09/09 16:36:57 (GMT -500)
lib/ansible/modules/core: (detached HEAD 34655e8e29) last updated
2015/09/09 16:37:02 (GMT -500)
lib/ansible/modules/extras: (detached HEAD 6a3cf63351) last updated
2015/09/09 16:37:06 (GMT -500)
config file = /etc/ansible/ansible.cfg
configured module search path = None
Thank you.
--
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/5a13ad5f-782b-41f3-a86c-733e6db03cc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.