workstation-setup/audio.yaml

62 lines
1.7 KiB
YAML

- 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=256/48000
tasks:
- name: Install music packages
ansible.builtin.package:
name:
- ardour8
- qpwgraph
- guitarix
- hydrogen
- lv2-avldrums-x42-plugin
- lv2-guitarix-plugins
- mod-gxpitchshifter.x86_64
- qsynth
- tuxguitar
- lv2-sfizz-ui
- carla
- lv2-carla
- drumgizmo
- name: Install Hydrogen drumkits
ansible.builtin.package:
name:
- hydrogen-drumkit-Roland_TB909
- hydrogen-drumkit-Roland_Tr-808_full
- AVLDrumkits-BlackPearl-H2-repack
- AVLDrumkits-BlondeBop-HotRod.h2d
- AVLDrumkits-BlondeBop.h2d
- AVLDrumkits-BuskmansHoliday
- AVLDrumkits-RedZeppelin-H2-repack.h2d
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