Implement task check for host group match.