Hello,
Thank you for your response.
27 декември 2014, събота, 03:21:06 UTC-5, Nico K. написа:
>
> 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
>
Yes, it looks like only command or shell modules will do it.
Regards
Rambius
--
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/0c2e341a-ad72-4f60-ad8a-70f00436521f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.