def METHOD_NAME(self):
    """ Get an overview of all packages on yum versionlock """
    rc, out, err = self.module.run_command([self.yum_bin, "versionlock", "list"])
    if rc == 0:
        return out
    elif rc == 1 and 'o such command:' in err:
        self.module.fail_json(msg="Error: Please install rpm package yum-plugin-versionlock : " + to_native(err) + to_native(out))
    self.module.fail_json(msg="Error: " + to_native(err) + to_native(out))