robertdebock.tlp

Ansible角色tlp

此角色已于2023年12月归档。

使用TLP节省笔记本电脑电池电量

GitHub GitLab 下载 版本
github gitlab downloads Version

示例剧本

此示例取自 molecule/default/converge.yml,并在每次推送、拉取请求和发布时进行测试。

---
- name: 合并
  hosts: all
  become: yes
  gather_facts: yes

  roles:
    - role: robertdebock.tlp

机器需要准备。在CI中,这是通过 molecule/default/prepare.yml 完成的:

---
- name: 准备
  hosts: all
  become: yes
  gather_facts: no

  roles:
    - role: robertdebock.bootstrap
    - role: robertdebock.epel

另请查看 完整的解释和示例,了解如何使用这些角色。

角色变量

变量的默认值在 defaults/main.yml 中设置:

---
# tlp的默认文件

# 您可以根据每个电池配置启动和停止阈值。
# 在CI中没有电池,因此默认情况下禁用此列表。

# tlp_batteries:
#   - name: BAT0
#     start_threshold: 70
#     stop_threshold: 90
#   - name: BAT1
#     start_threshold: 70
#     stop_threshold: 90
tlp_batteries: []

要求

使用的角色状态

以下角色用于准备系统。您可以通过其他方式准备您的系统。

需求 GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.epel Build Status GitHub Build Status GitLab

上下文

该角色是许多兼容角色的一部分。有关更多信息,请查看 这些角色的文档

这里是相关角色的概述: dependencies

兼容性

该角色已在以下 容器镜像 中测试:

容器 标签
Debian bullseye
EL 8, 9
Fedora all
opensuse all
Ubuntu bionic

所需的最低Ansible版本为2.12,测试已在:

  • 以前版本。
  • 当前版本。
  • 开发版本中进行。

如果您发现问题,请在 GitHub 中注册它们。

许可证

Apache-2.0

作者信息

robertdebock

请考虑 赞助我

关于项目

Save laptop battery power using TLP

安装
ansible-galaxy install robertdebock.tlp
许可证
apache-2.0
下载
208
拥有者
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.