SyntaxError with local_action

71 views
Skip to first unread message

Mehul Ved

unread,
Feb 28, 2014, 6:24:16 AM2/28/14
to ansible...@googlegroups.com
I was following rsync example from https://github.com/ansible/ansible/pull/2508 to recursively transfer files. I added following lines to my tasks

  1.   - name: copy generic config files for freeswitch
  2.     sudo: no
  3.     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

Michael DeHaan

unread,
Feb 28, 2014, 9:02:26 AM2/28/14
to ansible...@googlegroups.com
That's curious.

If you still see this on the development branch, please file a bug on github at github.com/ansible/ansible with steps to reproduce.



--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e3588f09-ba0b-4f74-9027-21c8c370aa72%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages