Hi Rambius,
The Copy module takes a file from the local (control) machine and sends it
to a target. The Fetch module takes a file from the target and pull it to
the local machine.
Using the modules in combination will 'delegate_to' will not help you
either, since that will perform the action against the delegated target
instead.
In your scenario I would use the 'command' module though in conjunction
with the 'creates' option like:
command: creates={{ backup_utils_dir }}/backup.config cp {{
backup_utils_dir }}/backup.config-example {{ backup_utils_dir
}}/backup.config
Regards,
Nico
--
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/e8841bb1-69e0-46a3-be75-a30a5b249373%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.