Add auto-cpufreq role

Not using it yet - but add role for installing auto-cpufreq. Possibly
provides better battery life.
This commit is contained in:
ducoterra
2022-02-02 09:47:23 -05:00
parent d1b00d74b9
commit c044325cd0
9 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
- name: Ensure snap installed
community.general.pacman:
name: snapd
state: present
become: yes
- name: Ensure snapd service running
ansible.builtin.systemd:
name: snapd.socket
state: started
enabled: yes
become: yes
- name: Uninstall tlp
community.general.pacman:
name: tlp
state: absent
become: yes
- name: Install auto-cpufreq
community.general.snap:
name: auto-cpufreq
state: present
become: yes
- name: Enable auto-cpufreq
command: auto-cpufreq --install
become: yes