'Initialises instance of the class.
:param module: Ansible module instance used to signal failures and run commands.
:type module: AnsibleModule
:param check_mode: Specify whether to only check if a change should be made or if to actually make a change.
:type check_mode: bool'

def __init__(self, module, check_mode=False):

    self.module = module
    self.check_mode = check_mode
