def METHOD_NAME():
    module = AnsibleModule(
        argument_spec = dict(
            dest      = dict(required=False),
            name      = dict(required=True),
            address0  = dict(required=True),
            address1  = dict(required=True),
            device    = dict(required=False),
            device0   = dict(required=False),
            device1   = dict(required=False),
            disk      = dict(required=False, ),
            disk0     = dict(required=False),
            disk1     = dict(required=False),
            metadisk  = dict(required=False, default='internal'),
            metadisk0 = dict(required=False),
            metadisk1 = dict(required=False),
            peer0     = dict(required=False),
            peer1     = dict(required=False),
            )
        )
    params = module.params
    # Set default values
    if not params['dest']: params['dest'] = os.path.join(DRBDCONFDIR, "%s.res" % params['name'])
    if not params['device0']: params['device0'] = params['device']
    if not params['device1']: params['device1'] = params['device']
    if not params['disk0']: params['disk0'] = params['disk']
    if not params['disk1']: params['disk1'] = params['disk']
    if not params['metadisk0']: params['metadisk0'] = params['metadisk']
    if not params['metadisk1']: params['metadisk1'] = params['metadisk']
    if not params['peer0']: params['peer0'] = params['address0']
    if not params['peer1']: params['peer1'] = params['address1']
    mandatory_params = ['device0', 'device1', 'disk0', 'disk1',
                        'metadisk0', 'metadisk1', 'peer0', 'peer1',
                        'address0', 'address1', 'dest', 'name']
    for p in mandatory_params:
        if not params[p]:
            module.fail_json(msg="Missing mandatory parameter `%s`" % p)
    TEMPLATE=TEMPLATE_RESOURCE_FILE % params
    # Check if destination file exists already
    # This `if` block only handle the `non-to-be-changed` case
    if os.path.exists(params['dest']):
        if not os.path.isfile(params['dest']):
            module.fail_json(msg="Destination file %s is not a file!" % params['dest'])
        # Compare the file and the template
        data = open(params['dest'], 'r').read()
        if data == TEMPLATE:
            module.exit_json(changed=False)
    fd = open(params['dest'], 'w')
    fd.write(TEMPLATE)
    fd.close()
    module.exit_json(changed=True)