I have a playbook that has the following
- name: Place Google Chrome launcher script
synchronize:
src: “bins/Remote Consult.app”
dest: “/Applications/”
tags: rc
it is failing on this task and the only thing iI have been able to determine the file has a space in it.
if I run it from ansible it works just fine
doe anyone know how I can structure src: “bins/Remote Consult.app” so that when i run the template that calls the playbook from AWX it will copy the directory over to teh client being configured?
Thank you in advance
Frank
Hi,
Can you please provide information about your setup? i.e. AWX and awx operator versions. Are you using a custom EE?
it is failing on this task
what does the stdout say for this failed task?
Thanks
AWX Team
fatal: [np-003.domian.com]: FAILED! => {“changed”: false, “cmd”: “/usr/bin/rsync --delay-updates -F --compress --archive --rsh=‘/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null’ --rsync-path=‘sudo -u root rsync’ --out-format=‘<>%i %n%L’ /runner/project/bins/Remote Consult.app administrator@np-003.dllstx02.catapulthealth.com:/Applications/”, “msg”: “Warning: Permanently added ‘np-003.domain.com,10.10.90.103’ (ECDSA) to the list of known hosts.\r\nrsync: link_stat "/runner/project/bins/Remote" failed: No such file or directory (2)\nrsync: link_stat "/runner/project/Consult.app" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]\n”, “rc”: 23} in AWX details
Modulesynchronizecommand used /usr/bin/rsync --delay-updates -F --compress --archive --rsh=‘/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null’ --rsync-path=‘sudo -u root rsync’ --out-format=‘<>%i %n%L’ /runner/project/bins/Remote Consult.app
administrator@np-003.domain.com:/Applications/
I see, yeah seems like it’s related to the space in the src file name. This question may be better suited for the Ansible group https://groups.google.com/g/ansible-project , so I’d recommend also posting there
AWX Team
I do not have this issue if I run it from ansible cli, I am seeing this in the AWX template running the same playbook