Hello. I've got problem with dynamic inventory and group_vars working in 
ansible:

Directory layout

- inventories
   - scale
     - ec2.py
     - ec2.ini
     - hosts
     - group_vars - link to ../../group_vars
- group_vars  
- roles
- playbook.yml
- ansible.cfg

 group_vars/scale_webservers

filebeat_gatherlogs:
  - apache
  - exim

Hosts file:

[localhost]
127.0.0.1

[tag_Type_sap]

[scale_webservers:children]
tag_Type_sap

Running it shows variable is not defined:


ansible@ansible0:/usr/local/ansible$ ansible -i inventories/scale 
scale_webservers -m debug -a "var=hostvars['filebeat_gatherlogs']"
sap0 | SUCCESS => {
    "hostvars['filebeat_logs']": "VARIABLE IS NOT DEFINED!"
}


Please help me solving it out. At least give me clues what have i did wrong.

-- 
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/339ab704-a118-4ec0-9d6d-3e8d85d5f527%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to