diff --git a/ansible/roles/screenly/tasks/main.yml b/ansible/roles/screenly/tasks/main.yml index 8c87dc7ee..0c15a9350 100644 --- a/ansible/roles/screenly/tasks/main.yml +++ b/ansible/roles/screenly/tasks/main.yml @@ -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') }}" diff --git a/docker-compose.yml.tmpl b/docker-compose.yml.tmpl index 6bfdd7e61..b8ec2edfe 100644 --- a/docker-compose.yml.tmpl +++ b/docker-compose.yml.tmpl @@ -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