you touch the exact part where i was missing It works !!
Thanks On Fri, Sep 16, 2016 at 10:10 PM, Josh Smift <[email protected]> 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 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 may just need > > shell: {{command}} > > for your task. > > And, if you just want to run a command that you specify on the command > line, you can use the ad-hoc 'ansible' command for that, rather than a > playbook, e.g. > > ansible group_domain -m shell -a 'netstat -an | grep 8080' > > If you leave off the '-m shell' part, it uses the 'command' module by > default, so you can do stuff like > > ansible group_domain -a 'free -m' > > if you don't have pipelines or other stuff that requires the 'shell' > module. > > -Josh ([email protected]) > > (apologies for the automatic corporate disclaimer that follows) > > This email is intended for the person(s) to whom it is addressed and may > contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized > use, distribution, copying, or disclosure by any person other than the > addressee(s) is strictly prohibited. If you have received this email in > error, please notify the sender immediately by return email and delete the > message and any attachments from your system. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/ansible-project/a7u_y3vi3j0/unsubscribe. > To unsubscribe from this group and all its topics, 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/22492.8329.899088.366315%40gargle.gargle.HOWL. > For more options, visit https://groups.google.com/d/optout. > -- Thanks & Regards Dhaval Jaiswal -- 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/CAH5ShBiy2Rgfgd2mOzvBrJVcAjV1-C3nwQW-FczcHhmQ5%3DXjYw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
