https://github.com/realorangeone/ansible-kconfig
Ansible module to manage KDE's configuration through kconfig
https://github.com/realorangeone/ansible-kconfig
ansible kconfig kde
Last synced: about 1 year ago
JSON representation
Ansible module to manage KDE's configuration through kconfig
- Host: GitHub
- URL: https://github.com/realorangeone/ansible-kconfig
- Owner: RealOrangeOne
- License: apache-2.0
- Created: 2023-01-17T09:25:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-26T22:10:38.000Z (over 1 year ago)
- Last Synced: 2025-02-28T01:44:09.077Z (over 1 year ago)
- Topics: ansible, kconfig, kde
- Language: Python
- Homepage: https://galaxy.ansible.com/realorangeone/kconfig
- Size: 36.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible kconfig
Ansible module to manage KDE's configuration through [kconfig](https://develop.kde.org/docs/use/configuration/introduction/).
## Requirements
This module works by wrapping `kreadconfig` and `kwriteconfig` (KDE 5 and 6 variants, eg `kreadconfig6`). These need to be installed and on your `$PATH`. THey should come with any KDE install.
## Installation
Install the `realorangeone.kconfig` collection from Ansible Galaxy:
```
ansible-galaxy collection install realorangeone.kconfig
```
## Use
This collection defines a single module `kconfig` which can be used to read or write config:
### Writing configuration parameters
```yaml
- name: Set animation duration
kconfig:
group: KDE
key: AnimationDurationFactor
value: 0.5
```
### Reading configuration parameters
```yaml
- name: Get keyboard shortcuts for krunner
kconfig:
state: read
file: kglobalshortcutsrc
group: org.kde.krunner.desktop
key: _launch
```
### Parameters
See the `DOCUMENTATION` parameter in [`kconfig.py`](./plugins/modules/kconfig.py) for full documentation.