Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@juanje
Created July 4, 2020 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanje/08e8eaeebc6fd8659ca84db5d71e2da9 to your computer and use it in GitHub Desktop.
Save juanje/08e8eaeebc6fd8659ca84db5d71e2da9 to your computer and use it in GitHub Desktop.
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