---
- name: 'Check gsetting (gsettings get {{ item.setting }})'
  command: 'gsettings get {{ item.setting }}'
  register: gsettings_get_command
  changed_when: false

- name: Apply gsetting (gsettings set)
  command: gsettings set {{ item.setting }} {{ item.value }}
  when:
    - gsettings_get_command.stdout != item.value
    - gsettings_get_command.stdout != ("''" + item.value + "''")
