/ansible-dconf

Ansible module for setting DConf entries

Primary LanguagePythonApache License 2.0Apache-2.0

ansible-dconf

Ansible module for setting DConf entries.

See also ansible-gsetting.

Installation

curl https://raw.githubusercontent.com/jistr/ansible-dconf/master/dconf.py > ~/ansible_dir/library/dconf

Usage examples

- name: gnome-terminal default-show-menubar
  dconf:
    user: 'jistr'
    key: '/org/gnome/terminal/legacy/default-show-menubar'
    value: 'false'

The user parameter is optional, using the currently connected user if omitted. If set, it uses su - <user> to switch.

Be careful with string values, which should be passed into DConf single-quoted. You'll need to quote the value twice in YAML:

- name: shortcut help
  dconf:
    user: 'jistr'
    key: '/org/gnome/terminal/legacy/keybindings/help'
    value: "'disabled'"