Hello
I have this inventory file:
/etc/ansible/inventory/inventory-file
[my-group]
myhost.com project=my group=group
[my-group:vars]
project=my
group=my-group
and this is my playbook
- hosts: '{{ host }}'
gather_facts: yes
roles:
- role: collectd
vars:
group: {{ project }}
project: {{ group }}
But for some reason ansible cant read those variables, can i know how i can
access this variables ?
<Plugin write_graphite>
{% if project == "my" %}
<Node "my_graphite">
Host "my_host"
{% elif project == "11" or project == "22" %}
<Node "11">
Host "22"
I will be using this variables to create a flexible tempalte file
--
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/2bf1bd86-db7e-44c9-a230-8c79904172af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.