Ansible 1.5.3 not running ruby scripts

66 views
Skip to first unread message

Ramesh Raithatha

unread,
Apr 9, 2014, 5:34:34 AM4/9/14
to ansible...@googlegroups.com
Hello,

I updated to ansible 1.5.3 and now i am not able to run my ruby scripts using "local_action" and "command" module.

It was running perfectly fine with ansible 1.4.3.


TASK: [Checking elb stat] *****************************************************
<127.0.0.1> REMOTE_MODULE command elbinfo <host>
<127.0.0.1> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1397031693.38-187319712535730 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1397031693.38-187319712535730 && echo $HOME/.ansible/tmp/ansible-tmp-1397031693.38-187319712535730']
<127.0.0.1> PUT /tmp/tmpy2zz36 TO /home/rraithatha/.ansible/tmp/ansible-tmp-1397031693.38-187319712535730/command
<127.0.0.1> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=vfiumfikpikyuljbzbgxrdrjdzxoijrn] password: " -u root /bin/sh -c '"'"'echo SUDO-SUCCESS-vfiumfikpikyuljbzbgxrdrjdzxoijrn; /usr/bin/python /home/rraithatha/.ansible/tmp/ansible-tmp-1397031693.38-187319712535730/command; rm -rf /home/rraithatha/.ansible/tmp/ansible-tmp-1397031693.38-187319712535730/ >/dev/null 2>&1'"'"''
changed: [<host>] => {"changed": true, "cmd": ["elbinfo", "<host>"], "delta": "0:00:02.135619", "end": "2014-04-09 08:21:35.645198", "item": "", "rc": 0, "start": "2014-04-09 08:21:33.509579", "stderr": "", "stdout": ""}




Thanks,
Ramesh

James Tanner

unread,
Apr 10, 2014, 10:36:05 PM4/10/14
to ansible...@googlegroups.com
--
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/406dc40c-b1d7-413a-8b08-a955ae60e5c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I'm guessing that the issue is there's no stdout?

See if using the shell module instead of the command module, makes it work.
Reply all
Reply to author
Forward
0 new messages