fix(element): container image task arguments

This commit is contained in:
transcaffeine 2024-11-12 20:46:13 +01:00
parent c153483976
commit 3ac177e04b
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
3 changed files with 8 additions and 5 deletions

View File

@ -11,12 +11,15 @@ element_container_image_registry: "docker.io"
element_container_image_namespace: "vectorim" element_container_image_namespace: "vectorim"
element_container_image_name: "element-web" element_container_image_name: "element-web"
element_container_image_tag: ~ element_container_image_tag: ~
element_container_image_source: pull
element_container_image_force_source: >-2
{{ element_container_image_tag | default(false, true) | bool }}
element_container_name: "element-web" element_container_name: "element-web"
element_container_restart_policy: >- element_container_restart_policy: >-
{{ (element_deployment_method == 'docker') {{ (element_deployment_method == 'docker')
| ternary('unless-stopped', | ternary('unless-stopped',
(element_deployment_method == 'podman' | (element_deployment_method == 'podman' |
ternary('on-failure', 'always')) ternary('on-failure', 'always')))
}} }}
element_container_full_volumes: >- element_container_full_volumes: >-
{{ element_container_default_volumes {{ element_container_default_volumes

View File

@ -14,8 +14,8 @@
community.docker.docker_image: community.docker.docker_image:
name: "{{ element_container_image }}" name: "{{ element_container_image }}"
state: "{{ element_state }}" state: "{{ element_state }}"
source: "{{ element_container_source }}" source: "{{ element_container_image_source }}"
force_source: "{{ element_container_image_tag | default(false, true) }}" force_source: "{{ element_container_image_force_source }}"
- name: Ensure container '{{ element_container_name }}' is {{ element_state }} - name: Ensure container '{{ element_container_name }}' is {{ element_state }}
community.docker.docker_container: community.docker.docker_container:

View File

@ -3,8 +3,8 @@
containers.podman.podman_image: containers.podman.podman_image:
name: "{{ element_container_image }}" name: "{{ element_container_image }}"
state: "{{ element_state }}" state: "{{ element_state }}"
pull: "{{ element_container_source == 'pull' }}" pull: "{{ element_container_image_source == 'pull' }}"
force: "{{ element_container_image_tag | default(false, true) }}" force: "{{ element_container_image_force_source }}"
- name: Ensure container '{{ element_container_name }}' is {{ element_state }} - name: Ensure container '{{ element_container_name }}' is {{ element_state }}
containers.podman.podman_container: containers.podman.podman_container: