---
- name: sync pull task
hosts: localhost
connection: local
become: true
become_user: user
tasks:
- name: copying file using pull
synchronize:
src: /home/sss/mypath/
dest: /home/user/ansibleworkspace/
mode: pull
rsync_path: "sudo_rsync"
recursive: true
delegate_to: '{{ item }}'
with_inventory_hostnames: targetserversI m trying to copy a directory from remote, but it's not happening. Its getting paused.
output:
user@thu:~/ansibleworkspace$ ansible-playbook checkremote.yml
PLAY [sync pull task] **********************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]TASK [copying file using pull] *************************************************
How to resolve it???
This mailing list is dedicated for development discussions about
Ansible itself, user community support questions, discussion, and
otherwise are recommended for the user's mailing list:
https://groups.google.com/forum/#!forum/ansible-project
Thank you,
-AdamM