The problem was posed with setting variables per host in inventory, you can use the constructed inventory to use those variables to create groups, the plays can filter only for the groups they are known to work with or not, i.e hosts: valid_groups or hosts: normalgropus:!invalid_for_this_play.
if you are getting teh variables dynamically, you can do same/similar with group_by, but then you need 3 plays, 1 to gather the info, 2 to use the group_by 3 the original play that processes the 'valid group(s)' -- ---------- Brian Coca (he/him/yo) -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7di%3DPkVEnnefWKAy2XL749JCNK_Jrs2K6sF%3Dt_EGO%2BGeA%40mail.gmail.com.