Exactly! Thanks for you help.

вторник, 11 марта 2014 г., 12:09:01 UTC+4 пользователь Tomasz Leśniewski 
написал:
>
> You mean:
>
> Host_group = {{  groups['app'] | join(',') }}
> Host_group = {{  groups['db'] | join(',') }}
>
> ?
>
> W dniu wtorek, 11 marca 2014 06:21:38 UTC+1 użytkownik Petr Sukharev 
> napisał:
>>
>> 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/d3d7b79a-287a-4fa3-8048-56645d1a75fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to