As discussed in #26, we should be able to treat Groups like sets - in order to be able to union them etc.
We should also add an operation group.filter(callable), which executes the callable on all hosts in the group and returns a new group that contains only those hosts where the callable returns True.
This would enable building groups based on dynamic information sourced from the hosts themselves.
As discussed in #26, we should be able to treat Groups like sets - in order to be able to union them etc.
We should also add an operation
group.filter(callable)
, which executes the callable on all hosts in the group and returns a new group that contains only those hosts where the callable returns True.This would enable building groups based on dynamic information sourced from the hosts themselves.