'Writes the value for specified key.
If an error occurs, a call will be made to AnsibleModule.fail_json.
:param key: dconf key for which the value should be set. Should be a full path.
:type key: str
:param value: Value to set for the specified dconf key. Should be specified in GVariant format.
:type value: str
:returns: bool -- True if a change was made, False if no change was required.'

def write(self, key, value):

    if (value == self.read(key)):
        return False
    elif self.check_mode:
        return True
    command = ['dconf', 'write', key, value]
    dbus_wrapper = DBusWrapper(self.module)
    (rc, out, err) = dbus_wrapper.run_command(command)
    if (rc != 0):
        self.module.fail_json(msg=('dconf    failed    while    write    the    value    with    error:    %s' % err))
    return True
