Re: [ansible-project] pipeline (|) not working with the -e option

2016-09-16 Thread DHAVAL JAISWAL
you touch the exact part where i was missing It works !! Thanks On Fri, Sep 16, 2016 at 10:10 PM, Josh Smift wrote: > If {{ip}} might be an Ansible group name, rather than a thing you can SSH > to, then you can't SSH to {{ip}}. > > Backing up a step, what are you trying to do here? if you want

Re: [ansible-project] pipeline (|) not working with the -e option

2016-09-16 Thread Josh Smift
If {{ip}} might be an Ansible group name, rather than a thing you can SSH to, then you can't SSH to {{ip}}. Backing up a step, what are you trying to do here? if you want to run a command on a bunch of hosts, Ansible will already SSH to those hosts from your control host to run the command, so you

Re: [ansible-project] pipeline (|) not working with the -e option

2016-09-16 Thread bablu
Tried with the shell module. It's working for the following scenario. However, not working for cluster where more than one server define in the inventory. working: ansible-playbook /etc/ansible/command_run.yml -e "ip=192.168.4.10" -e 'command="netstat -an | grep 8080"' Not working: ansible-p