Files
Workstation/ansible/fedora_hardware_tools/tasks/main.yml
ducoterra 8fbf384b2d Add fedora compatibility
Add fedora installation for Framework.
2022-02-06 17:29:55 -05:00

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