chore(server): split container image into parts

This commit is contained in:
transcaffeine 2024-10-04 19:34:31 +02:00
parent 4a67f38f11
commit 6640ba726e
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
2 changed files with 14 additions and 3 deletions

View File

@ -20,9 +20,20 @@ nextcloud_database_pass: ~
nextcloud_database_host: localhost
nextcloud_container_name: nextcloud
nextcloud_container_image: docker.io/library/nextcloud
nextcloud_container_image_server: docker.io
nextcloud_container_image_namespace: library
nextcloud_container_image_name: nextcloud
nextcloud_container_image: >-2
{{
[
nextcloud_container_image_server,
nextcloud_container_image_namespace,
nextcloud_container_image_name,
] | join('/')
}}
nextcloud_container_image_variant: "-fpm-alpine"
nextcloud_container_image_ref: "{{ nextcloud_container_name }}:{{ nextcloud_version }}{{ nextcloud_container_image_variant }}"
nextcloud_container_image_ref: >-2
{{ nextcloud_container_image }}:{{ nextcloud_version }}{{ nextcloud_container_image_variant }}
nextcloud_container_image_force_source: false
nextcloud_container_restart_policy: "unless-stopped"

View File

@ -29,7 +29,7 @@
group: "{{ item.group }}"
loop: "{{ nextcloud_paths }}"
- name: Ensure docker container for nextcloud is pulled
- name: Ensure docker container image '{{ nextcloud_container_image_ref }}' for nextcloud is pulled
community.docker.docker_image:
name: "{{ nextcloud_container_image_ref }}"
state: present