I was following rsync example from https://github.com/ansible/ansible/pull/2508 to recursively transfer files. I added following lines to my tasks
-
- name: copy generic config files for freeswitch
-
sudo: no
-
local_action: command rsync -a files/conf root@{{ ansible_ssh_host }}:/usr/local/share/freeswitch/
It gave me following error:
invalid output was: File “/home/mehul/.ansible/tmp/ansible-1393604508.71-11919565258498/command”, line 475
except OSError, e:
^
SyntaxError: invalid syntax
FATAL: all hosts have already failed – aborting
I get the same error even if I change the local action to:
local_action: command echo “foo”
local_action: shell echo “foo”
% python --version
Python 2.7.6
% pip freeze
Jinja2==2.7.2
MarkupSafe==0.18
MySQL-python==1.2.5
PyYAML==3.10
ansible==1.4.4
ansible-shell==0.0.2
ecdsa==0.10
epdb==0.12
httplib2==0.8
paramiko==1.12.1
pycrypto==2.6.1
wsgiref==0.1.2