From 5b38a4892580f41fb090eaf4328ba111e9faa8cb Mon Sep 17 00:00:00 2001 From: "Tyler S. Jordan" Date: Fri, 16 Aug 2024 21:01:44 -0600 Subject: [PATCH] Parameterize container and image name and version --- roles/photoprism/defaults/main.yml | 3 +++ roles/photoprism/tasks/main.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/photoprism/defaults/main.yml b/roles/photoprism/defaults/main.yml index cfa1aa2b1..f7b760079 100644 --- a/roles/photoprism/defaults/main.yml +++ b/roles/photoprism/defaults/main.yml @@ -4,3 +4,6 @@ photoprism_photos_directory: "{{ photos_root }}" photoprism_port: "2342" photoprism_hostname: "photoprism" photoprism_available_externally: false +photoprism_container_name: "photoprism" +photoprism_image_name: "photoprism" +photoprism_image_version: "latest" diff --git a/roles/photoprism/tasks/main.yml b/roles/photoprism/tasks/main.yml index 9fcbe9eef..fbfbdf01c 100644 --- a/roles/photoprism/tasks/main.yml +++ b/roles/photoprism/tasks/main.yml @@ -10,8 +10,8 @@ - name: Install Docker container docker_container: - name: photoprism - image: photoprism/photoprism + name: "{{ photoprism }}" + image: "{{ photoprism_image_name }}/{{ photoprism_image_version }}" pull: true ports: - "{{ photoprism_port }}:2342"