- 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 search_string: 'PIPEWIRE_LATENCY=256/48000' 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 - org.freedesktop.LinuxAudio.Plugins.Guitarix//24.08 - org.freedesktop.LinuxAudio.Plugins.DrumGizmo//24.08 - org.freedesktop.LinuxAudio.Plugins.AVLDrums//24.08 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