stuvusIT.systemd-udevd
systemd-udevd
This role sets up systemd-udevd and makes hwdb entries and rules.
Requirements
You need systemd with udevd included.
Role Variables
Name | Default/Required | Description |
---|---|---|
udevd_log_level |
info |
Sets the logging level for udevd. |
udevd_hwdb_entries |
A list of custom hwdb entries (more info below). | |
udevd_rules |
A list of custom rules (more info below). |
Custom hwdb entries
Each hwdb entry can have various matches and properties to apply if a device fits the criteria. Both can be a single string or a list of strings. They shouldn't have any extra spaces, and the role takes care of formatting.
Name | Default/Required | Description |
---|---|---|
matches |
A string or list of strings to match | |
properties |
A property or list of properties to set |
Custom rules
Each rule can have various matches and assignments. Matches are listed first, followed by assignments. Matches use ==
for comparison, while assignments use =
to set values.
Name | Default/Required | Description |
---|---|---|
matches |
A list of matches | |
assignments |
A list of assignments |
Dependencies
No dependencies.
Example Playbook
- hosts: all
roles:
- systemd-udevd
udevd_log_level: err
udevd_hwdb_entries:
- matches: [ "mouse:*:name:*Trackball*:", "mouse:*:name:*trackball*:" ]
properties: "ID_INPUT_TRACKBALL=1"
udevd_rules:
- matches: [ 'KERNEL=="hdb"', 'DRIVER=="ide-disk"' ]
assignments: [ 'NAME="myDisk"' ]
License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Author Information
Installa
ansible-galaxy install stuvusIT.systemd-udevd
Licenza
other
Download
3.2k
Proprietario
stuvus IT Team - Studierendenvertretung Universität Stuttgart