chore(server): split container image into parts
This commit is contained in:
parent
4a67f38f11
commit
6640ba726e
@ -20,9 +20,20 @@ nextcloud_database_pass: ~
|
|||||||
nextcloud_database_host: localhost
|
nextcloud_database_host: localhost
|
||||||
|
|
||||||
nextcloud_container_name: nextcloud
|
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_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_image_force_source: false
|
||||||
nextcloud_container_restart_policy: "unless-stopped"
|
nextcloud_container_restart_policy: "unless-stopped"
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
group: "{{ item.group }}"
|
group: "{{ item.group }}"
|
||||||
loop: "{{ nextcloud_paths }}"
|
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:
|
community.docker.docker_image:
|
||||||
name: "{{ nextcloud_container_image_ref }}"
|
name: "{{ nextcloud_container_image_ref }}"
|
||||||
state: present
|
state: present
|
||||||
|
Loading…
Reference in New Issue
Block a user