Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 881 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 881 Bytes

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'"