When working with host patterns, is it possible to craft one that says “must be in group X and must be in either group Y, W and Z”?
e.g. host must be in group “webserver” but it must also be in either group dc1, dc2 or dc3.
I can see how to check that webserver is part of dc1 (webserver,&dc1) but not sure how to build it with multiple “OR” on the “AND” (something like “webserver,&(dc1,dc2,dc3)” is what I’m looking for but it doesn’t work)
There is an example in the doc (you posted the link).
webservers:dbservers:&staging
The above configuration means “all machines in the groups ‘webservers’ and ‘dbservers’ are to be managed if they are in the group ‘staging’ also, …