Hi!
Does anybody know solution for scenario like this:
i have template (sudoers file with host list) like this

Host_group = host1, host2, host3
Host_group = host4, host5, host6
Host_group = host7, host8, host9

And host file like this:
[app]
host1
host2
host3

[db]
host4
host5
host6

[other]
host7
host8
host9

How can i use variable with host list from hosts file? Like this:

Host_group = {{  app }}
Host_group = {{  db }}

I add some host in hosts file and it will be automatically insert into this 
variable. Does it real?


-- 
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/2c48b986-a272-4225-b089-246f0adfd2d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to