From 271e4bf1d98e8dd833ec46d3879416fb29f597ba Mon Sep 17 00:00:00 2001 From: chatton Date: Fri, 23 Jun 2023 17:36:03 +0100 Subject: [PATCH] specify version for mariadb --- host_vars/qnap.yml | 2 ++ roles/setup_hosted_services/templates/mariadb.j2 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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: