Skip to content

Commit

Permalink
Merge pull request #2124 from mcrosson/asound-local-override-support
Browse files Browse the repository at this point in the history
Add support for asoundrc
  • Loading branch information
nicomiguelino authored Nov 30, 2024
2 parents 0b6f20b + 379dcbc commit e390a31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ansible/roles/screenly/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
- .config
- screenly_assets

- name: Create empty .asoundrc
ansible.builtin.file:
path: "/home/{{ lookup('env', 'USER') }}/.asoundrc"
state: touch
force: false
group: "{{ lookup('env', 'USER') }}"
owner: "{{ lookup('env', 'USER') }}"
mode: "0644"

- name: Copy Screenly default assets file
ansible.builtin.copy:
owner: "{{ lookup('env', 'USER') }}"
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ services:
shm_size: ${SHM_SIZE_KB}kb
volumes:
- resin-data:/data
- /home/${USER}/.asoundrc:/data/.asoundrc
- /home/${USER}/.screenly:/data/.screenly
- /home/${USER}/screenly_assets:/data/screenly_assets
- /etc/timezone:/etc/timezone:ro
Expand Down

0 comments on commit e390a31

Please sign in to comment.