summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/nextcloud/tasks')
-rw-r--r--roles/apps/nextcloud/tasks/custom-image.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/apps/nextcloud/tasks/custom-image.yml b/roles/apps/nextcloud/tasks/custom-image.yml
index 23454c80..c7e37654 100644
--- a/roles/apps/nextcloud/tasks/custom-image.yml
+++ b/roles/apps/nextcloud/tasks/custom-image.yml
@@ -10,6 +10,7 @@
FROM {{ item.value.custom_image.from | default('nextcloud:' + item.value.version) }}
{{ item.value.custom_image.dockerfile }}
dest: "{{ nextcloud_base_path }}/{{ item.key }}/build/Dockerfile"
+ register: nextcloud_custom_image_docker
- name: install python-docker
apt:
@@ -20,6 +21,7 @@
docker_image:
name: "nextcloud/{{ item.key }}:{{ item.value.version }}"
state: present
+ force_source: "{{ nextcloud_custom_image_docker is changed }}"
source: build
build:
path: "{{ nextcloud_base_path }}/{{ item.key }}/build"