On 04/09/2014 05:34 AM, Ramesh Raithatha wrote:
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
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/406dc40c-b1d7-413a-8b08-a955ae60e5c3%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/406dc40c-b1d7-413a-8b08-a955ae60e5c3%40googlegroups.com?utm_medium=email&utm_source=footer>.
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.
--
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/53475515.1020209%40gmail.com.
For more options, visit https://groups.google.com/d/optout.