39 lines
788 B
YAML
39 lines
788 B
YAML
---
|
|
- name: Ensure hardware-controlling software installed
|
|
dnf:
|
|
name:
|
|
- ufw
|
|
- tlp
|
|
state: present
|
|
become: yes
|
|
# TLP
|
|
- name: Create tlp.conf file
|
|
copy:
|
|
dest: "/etc/tlp.conf"
|
|
content: |
|
|
PCIE_ASPM_ON_BAT=powersupersave
|
|
become: yes
|
|
- name: Ensure tlp service enabled and running
|
|
ansible.builtin.systemd:
|
|
name: tlp
|
|
state: started
|
|
enabled: yes
|
|
become: yes
|
|
# Mic headphone jack
|
|
- name: Ensure microphone works plugged into headphone jack
|
|
copy:
|
|
dest: "/etc/modprobe.d/alsa-base.conf"
|
|
content: |
|
|
options snd-hda-intel model=dell-headset-multi
|
|
become: yes
|
|
# UFW
|
|
- name: Allow SSH
|
|
community.general.ufw:
|
|
rule: allow
|
|
name: ssh
|
|
become: yes
|
|
- name: Enable UFW
|
|
community.general.ufw:
|
|
state: enabled
|
|
become: yes
|