summaryrefslogtreecommitdiff
path: root/ansible/roles/thinkpad/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/thinkpad/tasks/main.yml')
-rw-r--r--ansible/roles/thinkpad/tasks/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/thinkpad/tasks/main.yml b/ansible/roles/thinkpad/tasks/main.yml
new file mode 100644
index 0000000..a118236
--- /dev/null
+++ b/ansible/roles/thinkpad/tasks/main.yml
@@ -0,0 +1,14 @@
+- name: "install software to manage Thinkpads"
+ apt:
+ name:
+ - tlp
+
+- name: "configure tlp to manage batteries"
+ copy:
+ src: tlp.conf
+ dest: /etc/tlp.d/50-debian-ansible.conf
+
+- name: "start tlp"
+ systemd:
+ name: tlp
+ state: restarted