feat(role): Initial commit

This commit is contained in:
2025-04-03 01:55:16 +02:00
parent f3a7e196b2
commit 8c0f99da88
10 changed files with 135 additions and 2 deletions

View File

@@ -1,3 +1,49 @@
# role-service-hardware_sensors
[//]: # (SPDX-License-Identifier: MIT)
# Role Name
On Linux hardware configure fan and temp sensors
role-service-hardware_sensors
# Description
On Linux hardware configure fan and temp sensors.
# Requirements
Your target machines must be Linux.
# Role Variables
Per [defaults/main.yml](defaults/main.yml) this role is equipped to deal with Arch Linux and Debian.
- `packages_linux_sensors_all_families`: Place package names in this list that are identical across all Linux flavors. While we do install packages we don't have any that have identical names across all Linux flavors so this variable defaults to an empty list.
```
packages_linux_sensors_all_families: []
```
- `packages_linux_sensors_*`: Add package names to an operating system-specific list if it's unique to that operating system. The asterisk (`*`) is a placeholder for `ansible_facts['os_family'] | lower`. If `ansible_facts['os_family']` equals `Debian` then this becomes `debian` and the list turns into `packages_linux_sensors_debian`; same for `packages_linux_sensors_archlinux` etc. Note that for Arch Linux these are official packages only, not packages from the Arch User Repository.
```
packages_linux_sensors_archlinux:
- 'lm_sensors'
packages_linux_sensors_debian:
- 'lm-sensors'
- 'fancontrol'
```
# Dependencies
None.
# Example Playbook
In your `playbook.yml` call it like so:
```
- name: 'Awesome playbook'
hosts: all
roles:
- 'role-service-hardware_sensors'
```
# License
MIT