2023-03-23 16:24:24 +00:00
|
|
|
- name: Install packages
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- mixertui
|
2024-04-22 21:23:20 +00:00
|
|
|
state: present
|
|
|
|
|
2022-12-02 22:31:39 +00:00
|
|
|
- name: Configure sysctls
|
2023-04-21 02:02:17 +00:00
|
|
|
ignore_errors: true
|
2022-12-02 22:31:39 +00:00
|
|
|
when: sound_default_unit is defined
|
|
|
|
sysctl:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
value: "{{ item.value }}"
|
|
|
|
state: present
|
|
|
|
sysctl_file: "/etc/sysctl.conf.local"
|
|
|
|
# Disabling loading the sysctl because the unit does not exist when not docked.
|
|
|
|
reload: false
|
|
|
|
loop:
|
|
|
|
- name: hw.snd.default_unit
|
|
|
|
value: "{{ sound_default_unit }}"
|
2024-05-10 22:51:17 +00:00
|
|
|
|
2024-05-18 13:52:18 +00:00
|
|
|
- name: Configure sysctls
|
|
|
|
sysctl:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
value: "{{ item.value }}"
|
|
|
|
state: present
|
|
|
|
sysctl_file: "/etc/sysctl.conf.local"
|
2024-05-10 22:51:17 +00:00
|
|
|
loop:
|
2024-05-18 13:52:18 +00:00
|
|
|
- name: hw.snd.verbose
|
|
|
|
value: "2"
|
|
|
|
|
|
|
|
- include_tasks: "tasks/freebsd_{{sound_system}}.yaml"
|
|
|
|
when: sound_system is defined
|