From f04e21927d3d269ec4b43671df3262a67bfcae6d Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Thu, 28 Dec 2023 17:19:51 +0100 Subject: [PATCH] Sort for loops --- roles/apps/templates/compose-files/restic.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/apps/templates/compose-files/restic.yml.j2 b/roles/apps/templates/compose-files/restic.yml.j2 index 108d626..bd76da4 100644 --- a/roles/apps/templates/compose-files/restic.yml.j2 +++ b/roles/apps/templates/compose-files/restic.yml.j2 @@ -34,7 +34,7 @@ services: volumes: - "/var/run/docker.sock:/var/run/docker.sock:rw" - "/usr/libexec/docker/cli-plugins/docker-compose:/usr/libexec/docker/cli-plugins/docker-compose:ro" -{% for app in apps_backup %} +{% for app in apps_backup|sort %} - "{{ apps_data_root }}/{{ app }}/data:/mnt/volumes/{{ app }}:ro" {% endfor %}