Aisbergg.lm_sensors

Ansible 角色: aisbergg.lm_sensors

这个 Ansible 角色安装 lm-sensors 并在 Debian、RedHat 和 ArchLinux 系统上检测可用的传感器。

需求

无。

角色变量

变量 默认值 说明
lm_sensors_force_detection false 强制检测传感器。默认情况下,只在安装时进行传感器检测。
lm_sensors_configs {} lm-sensors 配置的字典。请参见下面的示例。

依赖项

无。

示例剧本

- hosts: all
  vars:
    lm_sensors_force_detection: true
    lm_sensors_configs:
      # 创建配置文件 '/etc/sensors.d/HP_Z600'
      HP_Z600: |
        chip "coretemp-isa-0000"
          label temp2 "核心 0"
          label temp3 "核心 1"
          label temp11 "核心 2"
          label temp12 "核心 3"

  roles:
    - aisbergg.lm_sensors

许可证

MIT

作者信息

Andre Lehmann (aisberg@posteo.de)

关于项目

Install lm-sensors and detect available sensors on the system.

安装
ansible-galaxy install Aisbergg.lm_sensors
许可证
mit
下载
2.3k
拥有者
DevOps, Go, Python, Bash, Ansible, Docker, GitLab-CI, Linux, MariaDB, PostgreSQL, Open Source, Communication Design, Running