Skip to content

Instantly share code, notes, and snippets.

@juanje
Created Jul 4, 2020
Embed
What would you like to do?
Set some Gnome configurations using Ansible
---
- name: Configure desktop
hosts: localhost
gather_facts: false
vars:
dconf_items:
- { key: "/org/gnome/desktop/interface/clock-show-date", value: "true" }
- { key: "/org/gnome/desktop/interface/clock-show-weekday", value: "true" }
- { key: "/org/gnome/desktop/peripherals/touchpad/natural-scroll", value: "false" }
- { key: "/org/gnome/shell/extensions/desktop-icons/show-home", value: "false" }
- { key: "/org/gnome/shell/extensions/desktop-icons/show-trash", value: "false" }
- { key: "/org/gnome/desktop/sound/allow-volume-above-100-percent", value: "true" }
- { key: "/org/gnome/settings-daemon/plugins/media-keys/max-screencast-length", value: "300" }
tasks:
- name: Ensure dconf module can work
become: true
package:
name: python3-psutil dbus-tools
state: present
- name: Ensure Desktop settings
dconf:
key: "{{ item.key }}"
value: "{{ item.value }}"
with_items: "{{ dconf_items }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment