Hi Tom,
I suspected that much. My questions are:
- Where are these coming from? I do not find documented that if you make a
section [webservers] in your inventory, that automagically an array
"groups[]" is created that has "webservers" as a member. Nor that there is
such a thing as inventory_hostname. In my inventory file I know I can
specify ungrouped hosts and named groups of hosts: but I find no references
to the variable inventory_hostname. From the way it is used in the
examples I gather it is the current hostname that ansible is working on
plucked from the inventory.
- Also these variables appear to be used differently as other variables,
i.e. not with "{{ }}", so they are really odd. What syntax do we need to
use for which items?
Op woensdag 6 september 2017 08:02:33 UTC+2 schreef Tom Bartsch:
> Hi,
>
> groups["webservers"] means that you have to define a group named
> webservers within your hosts file.
>
> *inventory_hostname* is the name of the hostname as configured in
> Ansible's inventory hosts file.
>
> Regards,
> 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/dce6582f-ba86-41bc-a4e4-c85233cbf24e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.