- name: "my synchronize module"
synhcronize:
src: /home/michel/*.txt
dest: //home/carla/
Here you have to use /home/Carla also this will sync on your local
machine.
- name: "my synchronize module"
synhcronize:
src: /home/michel/*.txt
dest: //home/carla/
Here you have to use /home/Carla also this will sync on your local machine.
delegate_to: localhost
Error : not found a repertory but i have some file with extend ".txt"
Someone can you help me please ?!!
Regards,
According to the docs the following task should copy from the inventory host to the Ansible controller
(not tested):
- name: Synchronization of src on the inventory host to the dest on the localhost in pull mode
synchronize:
mode: pull
src: some/relative/path
dest: /some/absolute/path