'Run only when yum is the package manager as the code is specific to it.'

def is_active(self):

    return (super(PackageAvailability, self).is_active() and (self.get_var('ansible_pkg_mgr') == 'yum'))
