Variables are, including inventory variables and "-e", but you cannot use fact gathering with /usr/bin/ansible, as they are a playbook only construct.
On Thu, Aug 28, 2014 at 4:44 AM, Alainkr <[email protected]> wrote: > Hello, > > I wanted to do that : > > ansible -i inventories/production all -m shell -a "echo urok | nc {{ > ansible_eth1.ipv4.address }} 2181 " > > But it it seams that vars are not supported within ad-hoc commands. Right ? > > Thanks > > Alain > > > -- > 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/28590f88-e3b2-442b-9d5e-4958d8e20a9e%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/28590f88-e3b2-442b-9d5e-4958d8e20a9e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgwNKkCig9o9nzj6VvE92%3D7r-PR_YJdFkKZeV9vWrbb3Mg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
