diff --git a/host_vars/qnap.yml b/host_vars/qnap.yml index 8352531..ade200c 100644 --- a/host_vars/qnap.yml +++ b/host_vars/qnap.yml @@ -102,6 +102,8 @@ services: - name: uptime-kuma - name: mariadb template_vars: + image: mariadb + tag: 10.8.3 default_network: mariadb_net - name: photoprism template_vars: diff --git a/roles/setup_hosted_services/templates/mariadb.j2 b/roles/setup_hosted_services/templates/mariadb.j2 index 442d017..4f06a3b 100644 --- a/roles/setup_hosted_services/templates/mariadb.j2 +++ b/roles/setup_hosted_services/templates/mariadb.j2 @@ -4,9 +4,9 @@ services: mariadb: labels: ie.cianhatton.backup.enabled: "true" - ie.cianhatton.backup.schedule: "{{backups.schedule_keys.nightly}}" + ie.cianhatton.backup.schedule: "{{ backups.schedule_keys.nightly }}" container_name: mariadb - image: mariadb + image: "{{ template_vars.image }}:{{ template_vars.tag }}" hostname: mariadb restart: unless-stopped ports: