Hi all,

I have an error with this task :

  - name: sync app directory
    synchronize:
      mode: pull
      src: rsync://192.168.1.1/home/user/files_www/
      dest: "/var/www/example.com/"
    become: false

running 
*ansible-pull -vvv -o -d /home/user/repo -i /home/lvd/repo/hosts -U 
gitaddress *
TASK [role_name : sync app directory] ************************************
task path: /home/user/repo/roles/app/tasks/deploy_app.yml:8
ESTABLISH LOCAL CONNECTION FOR USER: user
127.0.0.1 EXEC /bin/sh -c '( umask 22 && mkdir -p "` echo 
$HOME/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189 `" && echo "` 
echo $HOME/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189 `" )'
127.0.0.1 PUT /tmp/tmp8Ovb03 TO /home/user/.ansible/tmp/ansible-tmp-
1462271107.33-264126737248189/synchronize
127.0.0.1 EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 
LC_MESSAGES=en_US.UTF-8 /usr/bin/python 
/home/user/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189/synchronize; 
rm -rf "/home/user/.ansible/tmp/ansible-tmp-1462271107.33-264126737248189/" 
> /dev/null 2>&1'
fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/usr/bin/rsync 
--delay-updates -F --compress --archive --rsh '/usr/bin/ssh  -S none -o 
StrictHostKeyChecking=no' --out-format='<<CHANGED>>%i %n%L' 
\"/home/user/repo/rsync:/192.168.1.1/home/user/files_www/\" 
\"/var/www/example.com/\"", "failed": true, "invocation": {"module_args": {
"_local_rsync_path": "rsync", "_substitute_controller": false, "archive": 
true, "checksum": false, "compress": true, "copy_links": null, "delete": 
false, "dest": "/var/www/example.com/", "dest_port": 22, "dirs": false, 
"existing_only": false, "group": null, "links": null, "mode": "pull", 
"owner": null, "partial": false, "perms": null, "private_key": null, 
"recursive": null, "rsync_opts": null, "rsync_path": null, "rsync_timeout": 
0, "set_remote_user": false, "src": 
"/home/user/repo/rsync:/192.168.1.1/home/user/files_www/", "ssh_args": null, 
"times": null, "verify_host": false}}, "msg": "rsync: change_dir 
\"/home/user/repo/rsync:/192.168.1.1/home/user/files_www/" failed: No such 
file or directory (2)\nrsync error: some files/attrs were not transferred (see 
previous errors) (code 23) at main.c(1183) [sender=3.1.1]\n", "rc": 23}


As we can see, the current working directory is placed before the source 
path :

"src": "/home/user/repo/rsync:/192.168.1.1/home/user/files_www/"


I missed something or this behavior is actually a bug ?



Thanks in advance

-- 
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/e05da870-4f0f-4a16-8399-6b1fa16012bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to