Hi,
I am working trhough some tutorials, and I have a question; I hope this is 
the proper forum to post it.
In the solution provided with the tutorial I see some variables used that I 
do not understand:

    inventory_hostname 
and:
    groups["webservers"]

I do not find these in the ansible facts (`ansible servera -m setup`).
Also I cannot evaluate them using JINJA2 template "{{ inventory_hostname 
}}", apparently they are something else.
"webservers" is a group in my inventory, but where is the hash "groups" 
defined or coming from?

The documentation appears to be silent about these things.

On a related note, how am I supposed to evaluate variables from the facts?  
e.g. "{{ ansible_memory_mb}}" gives an error stating that I am not allowed 
to use JINJA2 templates here.

Tom

-- 
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/cc33b330-55c0-4b52-9293-11d956085430%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to