Skip to content

Commit

Permalink
immich: Recreate containers when config files change
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkasad committed Jan 26, 2025
1 parent ae2f81d commit f10494d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/immich/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@
dst: config.json
- src: hwaccel.transcoding.yml
dst: hwaccel.transcoding.yml
register: render_templates

- name: Start Immich stack
community.docker.docker_compose_v2:
project_src: "{{ immich_data_dir }}"
wait: true
pull: always
recreate: "{{ render_templates.changed | ternary('always', 'auto') }}"

- name: Disable Immich
when: immich_enabled is false
Expand Down

0 comments on commit f10494d

Please sign in to comment.