Re: [ansible-project] Command not working on remote host through shell module or playbook

2016-10-09 Thread Kai Stian Olstad
On 22. sep. 2016 16:47, bablu wrote: Can some one help here. You have multiple challenges to overcome, so what you are trying to achieve is going to be rather difficult. On Wednesday, September 21, 2016 at 10:14:16 PM UTC+5:30, bablu wrote: That's working. But I guess here i have to

Re: [ansible-project] Command not working on remote host through shell module or playbook

2016-09-22 Thread bablu
Can some one help here. On Wednesday, September 21, 2016 at 10:14:16 PM UTC+5:30, bablu wrote: > > > That's working. > > But I guess here i have to hard code the command. Is there any way where i > can pass any command at the run time to execute on the remote host. > > I saw the raw

Re: [ansible-project] Command not working on remote host through shell module or playbook

2016-09-21 Thread bablu
That's working. But I guess here i have to hard code the command. Is there any way where i can pass any command at the run time to execute on the remote host. I saw the raw module and below are the behavior i got. working: /usr/bin/ansible test -m raw -a netstat -tanpu | /bin/awk '{print

Re: [ansible-project] Command not working on remote host through shell module or playbook

2016-09-21 Thread Kai Stian Olstad
On 20.09.2016 10:00, DHAVAL JAISWAL wrote: Ansible version: ansible 1.9.2 I am unable to execute following command from shell module neither through playbook. It could be any command at the run time. While reading found $,% need the escape string. Tried but not working. Is there any

[ansible-project] Command not working on remote host through shell module or playbook

2016-09-20 Thread DHAVAL JAISWAL
Ansible version: ansible 1.9.2 I am unable to execute following command from shell module neither through playbook. It could be any command at the run time. While reading found $,% need the escape string. Tried but not working. Is there any way/module through which i can run any command on the