28 lines
595 B
YAML
28 lines
595 B
YAML
---
|
|
- name: tlp | Install tlp package
|
|
community.general.packaging.os.apk:
|
|
name: tlp
|
|
state: present
|
|
|
|
# I have a ThinkPad laptop :)
|
|
- name: tlp | Install acpi_call kernel module
|
|
community.general.packaging.os.apk:
|
|
name: acpi_call-src
|
|
state: present
|
|
when: ansible_hostname == 'alpine-tp'
|
|
|
|
- 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
|
|
enabled: true
|
|
state: started
|
|
runlevel: default
|