def METHOD_NAME(self, rule, task_action, task_args):
    display.vv("match_ansible_rule: {} on {}".format(rule, task_action, task_args))
    if not self._match(rule['action'], task_action):
        return False
    if 'params' in rule and not self._match_task_args(rule['params'], task_args):
        return False
    return True