workstation-setup/audio.yaml

53 lines
1.6 KiB
YAML
Raw Normal View History

2025-03-10 14:28:48 +01:00
- name: Install Audio packages
hosts: localhost
gather_facts: yes
become: true
pre_tasks:
- name: Enable Copr
command:
cmd: dnf copr enable -y ycollet/audinux
creates: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:ycollet:audinux.repo
- name: install packages
ansible.builtin.package:
name:
- realtime-setup
- name: Add Pipewire config to environment
ansible.builtin.lineinfile:
path: /etc/environment
2025-03-10 20:38:59 +01:00
search_string: 'PIPEWIRE_LATENCY=256/48000'
2025-03-10 14:28:48 +01:00
line: PIPEWIRE_LATENCY=128/48000
tasks:
- name: Install music flatpaks
community.general.flatpak:
state: present
remote: flathub
name:
- org.ardour.Ardour
- org.rncbc.qpwgraph
- org.guitarix.Guitarix
- org.hydrogenmusic.Hydrogen
- org.rncbc.qsynth
- ar.com.tuxguitar.TuxGuitar
- studio.kx.carla
- org.freedesktop.LinuxAudio.Plugins.sfizz//24.08
2025-03-10 20:38:59 +01:00
- org.freedesktop.LinuxAudio.Plugins.Guitarix//24.08
- org.freedesktop.LinuxAudio.Plugins.DrumGizmo//24.08
- org.freedesktop.LinuxAudio.Plugins.AVLDrums//24.08
2025-03-10 14:28:48 +01:00
post_tasks:
- name: Make sure a realtime services unit enabled
ansible.builtin.systemd_service:
enabled: true
name: "{{ item }}"
loop:
- realtime-entsk.service
- realtime-setup.service
- name: Add ccowley to realtime group
ansible.builtin.user:
name: ccowley
shell: /bin/bash
groups: realtime
append: yes