Fix ansible-lint violations: FQCN, formatting, bugs, role renames
- Auto-fix FQCN, YAML formatting, jinja spacing, and free-form module syntax via ansible-lint --fix - Fix comments misplaced inside module args by the auto-fixer (bluetooth-monitor, pi_standard_setup, pi_musicmouse) - Fix notify: references left stale (lowercase) after handler names were re-cased, which would have silently broken reboot/restart handlers (pi_disable_onboard_bluetooth, pi_hifiberry_amp, pi_squeezelite, pi_standard_setup) - Fix a task in pis/debmatic-install.yml missing its module name (apt_repository), which caused a real syntax-check failure - Add missing play names, fix comment spacing, literal-compare idiom, and no-changed-when annotations - Delete unused/broken roles/better-shell-env (unreferenced, invalid YAML) - Rename all hyphenated role directories to underscore form to satisfy ansible-lint's role-name rule, updating every playbook/meta reference Remaining lint findings (var-naming, package-latest, risky-file-permissions, no-handler) intentionally left for follow-up per user decision.
This commit is contained in:
5
roles/pi_squeezelite_custom/README.md
Normal file
5
roles/pi_squeezelite_custom/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# pi_squeezelite_custom
|
||||
|
||||
Like `pi_squeezelite`, but uninstalls the distro package and deploys a
|
||||
custom-compiled `squeezelite` build instead as a systemd service. See
|
||||
`custom build/readme_build.md` for how that build is produced.
|
||||
47
roles/pi_squeezelite_custom/custom build/readme_build.md
Normal file
47
roles/pi_squeezelite_custom/custom build/readme_build.md
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
Repository: https://github.com/ralph-irving/squeezelite.git
|
||||
Version: c89faf3280c5dca3f04906a4ff7796a0043e99f0
|
||||
|
||||
|
||||
Packages to build:
|
||||
- libmad0
|
||||
- libmpg123-0
|
||||
- libflac8
|
||||
- libvorbisfile3
|
||||
- libfaad2
|
||||
# for building libssl-dev, libasound2-dev, libflac-dev, libvorbis-dev, libsoxr-dev, libfaad-dev, libmad0-dev, libmpg123-dev
|
||||
|
||||
Adapted makefile.rpi
|
||||
#OPTS = -DRESAMPLE -DDSD -DUSE_SSL -DLINKALL -I./include -I./include/opus -I./include/alac -I/usr/local/include -s -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
|
||||
|
||||
|
||||
|
||||
Old
|
||||
---
|
||||
|
||||
|
||||
Repository: https://github.com/ralph-irving/squeezelite.git
|
||||
Version: 779fe9035a2dfcaeeb5335497a012d5e7241a409
|
||||
|
||||
Custom Makefile based on Makefile.rpi:
|
||||
|
||||
```Makefile
|
||||
OPTS = -DLINUX -DUSE_SSL -DLINKALL -I./include -I./include/opus -I./include/alac -I/usr/local/include -s -march=armv6 -mfloat-abi=hard -mfpu=vfp
|
||||
|
||||
LDFLAGS=-L./lib -L/usr/local/lib -s -lgomp -lasound
|
||||
|
||||
include Makefile
|
||||
```
|
||||
|
||||
Required packages:
|
||||
```bash
|
||||
apt-get install libasound2 libasound2-dev libflac-dev libmad0-dev libfaad-dev libmpg123-dev libvorbis-dev
|
||||
```
|
||||
|
||||
|
||||
- no RPI switch (this is only when wanting to do switiching based on GPIO headers)
|
||||
- manually added -lasound (don't know why it wasn't in there)
|
||||
|
||||
Then just build with
|
||||
make -f mymakefile (on a raspi)
|
||||
|
||||
BIN
roles/pi_squeezelite_custom/files/squeezelite
Executable file
BIN
roles/pi_squeezelite_custom/files/squeezelite
Executable file
Binary file not shown.
BIN
roles/pi_squeezelite_custom/files/squeezelite_old
Executable file
BIN
roles/pi_squeezelite_custom/files/squeezelite_old
Executable file
Binary file not shown.
44
roles/pi_squeezelite_custom/tasks/main.yml
Normal file
44
roles/pi_squeezelite_custom/tasks/main.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
- name: Uninstall system package of squeezelite
|
||||
ansible.builtin.apt:
|
||||
name: squeezelite
|
||||
state: absent
|
||||
- name: Install dependencies
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- libmad0
|
||||
- libmpg123-0
|
||||
- libflac12
|
||||
- libvorbisfile3
|
||||
- libfaad2
|
||||
# for building libssl-dev, libasound2-dev, libflac-dev, libvorbis-dev, libsoxr-dev, libfaad-dev, libmad0-dev, libmpg123-dev
|
||||
state: present
|
||||
cache_valid_time: 7200
|
||||
- name: Remove old config file if present
|
||||
ansible.builtin.file:
|
||||
path: /etc/default/squeezelite
|
||||
state: absent
|
||||
- name: Copy over custom compile version of squeezelite
|
||||
ansible.builtin.copy:
|
||||
src: squeezelite
|
||||
dest: /opt/squeezelite
|
||||
mode: "700"
|
||||
- name: Install systemd service file
|
||||
ansible.builtin.template:
|
||||
src: squeezelite.service
|
||||
dest: /lib/systemd/system/
|
||||
- name: Enable sysdweb autostart
|
||||
ansible.builtin.systemd:
|
||||
name: squeezelite
|
||||
state: restarted
|
||||
enabled: "yes"
|
||||
daemon_reload: "yes"
|
||||
- name: Add to sysdweb
|
||||
ansible.builtin.include_role:
|
||||
name: pi_sysdweb
|
||||
vars:
|
||||
sysdweb_name: squeezelite
|
||||
|
||||
# build with adapted Makefile.rpi:
|
||||
# OPTS = -DRESAMPLE -DDSD -DUSE_SSL -DLINKALL -I./include -I./include/opus -I./include/alac -I/usr/local/include -s -mfpu=vfp
|
||||
# -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
|
||||
10
roles/pi_squeezelite_custom/templates/squeezelite.service
Normal file
10
roles/pi_squeezelite_custom/templates/squeezelite.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Squeezelite
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/squeezelite -n {{squeezelite_name}} -s {{squeezeserver}} -o softvol_squeezelite
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user