def METHOD_NAME(self):
    current = self.getcap(self.path)
    caps = [cap[0] for cap in current]
    if self.state == 'present' and self.capability_tup not in current:
        # need to add capability
        if self.module.check_mode:
            self.module.exit_json(changed=True, msg='capabilities changed')
        else:
            # remove from current cap list if it's already set (but op/flags differ)
            current = list(filter(lambda x: x[0] != self.capability_tup[0], current))
            # add new cap with correct op/flags
            current.append(self.capability_tup)
            self.module.exit_json(changed=True, state=self.state, msg='capabilities changed', stdout=self.setcap(self.path, current))
    elif self.state == 'absent' and self.capability_tup[0] in caps:
        # need to remove capability
        if self.module.check_mode:
            self.module.exit_json(changed=True, msg='capabilities changed')
        else:
            # remove from current cap list and then set current list
            current = filter(lambda x: x[0] != self.capability_tup[0], current)
            self.module.exit_json(changed=True, state=self.state, msg='capabilities changed', stdout=self.setcap(self.path, current))
    self.module.exit_json(changed=False, state=self.state)