Selecting Host in Multiple Groups

Hey All,

How would one go about targeting hosts based on being them being in multiple groups? For example, I have a staging inventory file with a Vagrant group and a Japan group. I want to target a vagrant server that is also in the Japan group, but don’t want the Japan hosts that aren’t in the Vagrant group.

I hope that was clear :-/

Thanks in advance!

  • James

​Sounds like "Vagrant:&Japan" ?​

That would be a group in the inventory file, correct? Is there a way to do it via the -l flag?