Created
July 4, 2020 02:26
-
-
Save juanje/08e8eaeebc6fd8659ca84db5d71e2da9 to your computer and use it in GitHub Desktop.
Set some Gnome configurations using Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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