community.general.gconftool2_info (8.5.0) — module

Retrieve GConf configurations

| "added in version" 5.1.0 of community.general"

Authors: Alexei Znamensky (@russoz)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This module allows retrieving application preferences from the GConf database, with the help of C(gconftool-2).

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get value for a certain key in the database.
  community.general.gconftool2_info:
    key: /desktop/gnome/background/picture_filename
  register: result

Inputs

    
key:
    description:
    - The key name for an element in the GConf database.
    required: true
    type: str

Outputs

value:
  description:
  - The value of the property.
  returned: success
  sample: Monospace 10
  type: str

See also