Note
This module is part of the community.general collection (version 10.7.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.xfconf_info.
New in community.general 3.5.0
xfconf-query.Parameter | Comments |
|---|---|
channel string | A Xfconf preference channel is a top-level tree key, inside of the Xfconf repository that corresponds to the location for which all application properties/keys are stored. If not provided, the module lists all available channels. |
property string |
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full added in community.general 3.3.0 This action does not modify state. | Can run in |
diff_mode | Support: N/A This action does not modify state. | Will return details on what has changed (or possibly needs changing in |
Note
- name: Get list of all available channels
community.general.xfconf_info: {}
register: result
- name: Get list of all properties in a specific channel
community.general.xfconf_info:
channel: xsettings
register: result
- name: Retrieve the DPI value
community.general.xfconf_info:
channel: xsettings
property: /Xft/DPI
register: result
- name: Get workspace names (4)
community.general.xfconf_info:
channel: xfwm4
property: /general/workspace_names
register: result
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
channels list / elements=string | List of available channels. Returned when the module receives no parameter at all. Returned: success Sample: |
is_array boolean | Flag indicating whether the property is an array or not. Returned: success |
properties list / elements=string | List of available properties for a specific channel. Returned by passing only the Returned: success Sample: |
value string | The value of the property. Empty if the property is of array type. Returned: success Sample: |
value_array list / elements=string | The array value of the property. Empty if the property is not of array type. Returned: success Sample: |
version string added in community.general 10.2.0 | The version of the Returned: success Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/xfconf_info_module.html