rundeck-plugins / ansible-plugin

Ansible Integration for Rundeck
MIT License
330 stars 100 forks source link

ansible rsync error "Broken pipe" #296

Open sergue2 opened 3 years ago

sergue2 commented 3 years ago

Hey,

i want to run following task with ansible:

- name: Pull unifi backups

synchronize: mode: pull src: /home/test/unifitest/testdatei.txt dest: /home/test/rundeck/unifibackups/ use_ssh_args: yes rsync_path: "sudo rsync"

but everytime i trie to run the playbook, i get this error:

FAILED! => {"changed": false, "cmd": "sshpass -d9 /usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -C -o ControlMaster=auto -o ControlPersist=60s --rsync-path=sudo rsync --out-format=<>%i %n%L test@192.168.3.108:/home/test/unifitest/testdatei.txt /home/test/rundeck/unifibackups/", "msg": "Warning: Permanently added '192.168.3.108' (ECDSA) to the list of known hosts.\r\nrsync: change_dir \"/home/test/unifitest\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1668) [Receiver=3.1.2]\nrsync: [Receiver] write error: Broken pipe (32)\n", "rc": 23}

Does anyone has an idea how to fix this?