Thanks Kai Stian,

Absolutely what I want. Fantastic!!

All I am doing now is use "--extra-vars" and assign any  <group_name> I 
want to configure to the variable, and that's it.
The code does not need to be modified anymore for different <group_name>s.



On Friday, August 9, 2019 at 10:11:41 AM UTC-5, Harrymosco wrote:
> Can I use a variable to insert inventory group when using groups; e.g.  
> groups['$groupname']?

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 view this discussion on the web visit

Reply via email to