--- - 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