Add fedora compatibility
Add fedora installation for Framework.
This commit is contained in:
38
ansible/fedora_hardware_tools/tasks/main.yml
Normal file
38
ansible/fedora_hardware_tools/tasks/main.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user