robertdebock.tlp
Ansible Role TLP
THIS ROLE IS NO LONGER ACTIVE AS OF DECEMBER 2023.
Use TLP to save your laptop's battery life.
GitHub | GitLab | Downloads | Version |
---|---|---|---|
Example Playbook
This example comes from molecule/default/converge.yml
and is tested with every push, pull request, and release.
---
- name: Converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: robertdebock.tlp
You need to prepare your machine. In CI, this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: yes
gather_facts: no
roles:
- role: robertdebock.bootstrap
- role: robertdebock.epel
For more details, see a full explanation and example on how to use these roles.
Role Variables
You can find default variable values in defaults/main.yml
:
---
# defaults file for tlp
# You can set start and stop battery thresholds.
# In CI, there are no batteries, so this is disabled by default.
# tlp_batteries:
# - name: BAT0
# start_threshold: 70
# stop_threshold: 90
# - name: BAT1
# start_threshold: 70
# stop_threshold: 90
tlp_batteries: []
Requirements
- Python packages listed in requirements.txt.
State of Used Roles
The following roles are used to set up a system. You can use other methods to prepare your system.
Requirement | GitHub | GitLab |
---|---|---|
robertdebock.bootstrap | ||
robertdebock.epel |
Context
This role is part of many compatible roles. Check the documentation of these roles for more information.
Here’s a summary of related roles:
Compatibility
This role has been tested on these container images:
container | tags |
---|---|
Debian | bullseye |
EL | 8, 9 |
Fedora | all |
openSUSE | all |
Ubuntu | bionic |
You need at least Ansible version 2.12. Tests have been done on:
- The previous version.
- The current version.
- The development version.
Please report any issues on GitHub.
License
Author Information
Consider sponsoring me.
ansible-galaxy install robertdebock.tlp