community / community.general / 1.3.14 / module / xfconf Edit XFCE4 Configurations Authors: Joseph Benden (@jbenden), Alexei Znamensky (@russoz)community.general.xfconf (1.3.14) — module
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
This module allows for the manipulation of Xfce 4 Configuration via xfconf-query. Please see the xfconf-query(1) man pages for more details.
- name: Change the DPI to "192" xfconf: channel: "xsettings" property: "/Xft/DPI" value_type: "int" value: "192"
- name: Set workspace names (4) xfconf: channel: xfwm4 property: /general/workspace_names value_type: string value: ['Main', 'Work1', 'Work2', 'Tmp']
- name: Set workspace names (1) xfconf: channel: xfwm4 property: /general/workspace_names value_type: string value: ['Main'] force_array: yes
state: choices: - get - present - absent default: present description: - The action to take upon the property/value. type: str value: description: - Preference properties typically have simple values such as strings, integers, or lists of strings and integers. This is ignored if the state is "get". For array mode, use a list of values. See man xfconf-query(1) elements: raw type: list channel: description: - 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. See man xfconf-query(1) required: true type: str property: description: - A Xfce preference key is an element in the Xfconf repository that corresponds to an application preference. See man xfconf-query(1) required: true type: str value_type: choices: - int - uint - bool - float - double - string description: - The type of value being set. This is ignored if the state is "get". For array mode, use a list of types. elements: str type: list force_array: aliases: - array default: 'no' description: - Force array even if only one element type: bool version_added: 1.0.0 version_added_collection: community.general
channel: description: The channel specified in the module parameters returned: success sample: xsettings type: str previous_value: description: - The value of the preference key before executing the module (C(none) for C(get) state). Either a single string value or a list of strings for array types. returned: success sample: '"96" or ["red", "blue", "green"]' type: string or list of strings property: description: The property specified in the module parameters returned: success sample: /Xft/DPI type: str value: description: - The value of the preference key after executing the module. Either a single string value or a list of strings for array types. returned: success sample: '"192" or ["orange", "yellow", "violet"]' type: string or list of strings value_type: description: - The type of the value that was changed (C(none) for C(get) and C(reset) state). Either a single string value or a list of strings for array types. returned: success sample: '"int" or ["str", "str", "str"]' type: string or list of strings