Hmm, that's unexpected. Since the latest stable release is 1.5.3, can you see if that happens there, and if so, file a github ticket at github.com/ansible/ansible?
The synchronize module received a lot of improvements in the last few months so there is a decent chance you'll be good to go. Thanks! On Tue, Mar 25, 2014 at 10:11 AM, Mehul Ved <[email protected]> wrote: > Hi, > I am using ansible 1.4.4. I get SyntaxError when running synchronize > plugin. > > Here's the playbook entry > > - name: create common folders > synchronize: src=s dest=/etc/ssh > > > > Here's the error that I get > > failed: [play] => {"failed": true, "item": "", "parsed": false} > invalid output was: File > > "/home/mehul/.ansible/tmp/ansible-1395752291.48-66351699093462/synchronize", > line 556 > except OSError, e: > ^ > SyntaxError: invalid syntax > > > FATAL: all hosts have already failed -- aborting > > > > I get the same error when running synchronize module using ansible command > line > > $ ansible -i hosts web -m synchronize -a "src=ssh dest=/tmp/ssh" > play | FAILED >> { > "failed": true, > "msg": " File > > \"/home/mehul/.ansible/tmp/ansible-1395752376.63-279538261866126/synchronize\", > line 556\n except OSError, e:\n ^\nSyntaxError: > invalid syntax\n", > "parsed": false > } > > > > Ansible is installed in virtualenv > > $ which python > /home/mehul/apps/lsdeploy/venv/bin/python > > $ python --version > Python 2.7.6 > > $ which ansible > /home/mehul/apps/lsdeploy/venv/bin/ansible > > $ ansible --version > ansible 1.4.4 > > -- > 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/CADTL0ob_XLGuUXVhF89kRqXqkm%3DR2u986PasTeF1kqmQkcByww%40mail.gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAEVJ8QMZAfY%3DcuOZ6mpnbjc70_Vb%2BG4BA_dpn3e0pHL8C2P3_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
