home · contact · privacy
Add power management / TLP stuff to Ansible script.
[config] / ansible / config.yml
index ffec8f089007a8c0f253f887bb627966381a48ff..ec592c674b9d8e4d73d19e32fdb2a99a4a409d2e 100644 (file)
   - name: update grub
     shell: update-grub
 
+  # Ensure power management.
+  - name: ensure newest kernel and grub are installed
+    apt: name={{item}} state=present
+    with_items:
+    - tlp
+    - acpi-call-dkms
+  - name: start TLP
+    shell: tlp start
+
   # Configure console.
   - name: symlink console config files
     file: state=link force=yes src={{item}} dest={{item|basename|regex_replace('___','/')}}