install.fairie/home/dot_local/share/ansible/tasks/qubes/gsetting.yml

12 lines
389 B
YAML
Raw Normal View History

2023-07-15 22:40:26 -07:00
---
- 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 + "''")