This repository has been archived on 2024-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
2022-01-14 19:46:59 +01:00
|
|
|
---
|
|
|
|
- name: tlp | Install tlp package
|
2022-10-16 12:31:57 +02:00
|
|
|
community.general.packaging.os.apk:
|
2022-01-14 19:46:59 +01:00
|
|
|
name: tlp
|
|
|
|
state: present
|
|
|
|
|
2022-02-11 18:39:35 +01:00
|
|
|
# I have a ThinkPad laptop :)
|
|
|
|
- name: tlp | Install acpi_call kernel module
|
2022-10-16 12:31:57 +02:00
|
|
|
community.general.packaging.os.apk:
|
2022-02-11 18:39:35 +01:00
|
|
|
name: acpi_call-src
|
|
|
|
state: present
|
|
|
|
when: ansible_hostname == 'alpine-tp'
|
|
|
|
|
2022-01-14 19:46:59 +01:00
|
|
|
- name: tlp | Copy configuration
|
|
|
|
template:
|
|
|
|
src: 00-custom.j2
|
|
|
|
dest: /etc/tlp.d/00-custom.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: tlp | Add tlp service to runlevel 'default'
|
|
|
|
service:
|
|
|
|
name: tlp
|
2022-10-16 12:31:57 +02:00
|
|
|
enabled: true
|
2022-01-14 19:46:59 +01:00
|
|
|
state: started
|
|
|
|
runlevel: default
|