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.

Appreciated!!

-Harrymosco.  

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7dc6745d-18b7-411c-aef4-35eebe6d999e%40googlegroups.com.

Reply via email to