From 476b225fcabd65841494996d85923df5d9dd9543 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 22 Nov 2022 09:40:09 +1100 Subject: [PATCH] borg-backup-server: build borg users betterer This looks wrong, in hindsight I'm not really sure how it works. Ansible 6 seems to barf on it. Make this one evaluated statement. Change-Id: I7f73bf723af1086fc4473e76614ce30ca14f3d74 --- playbooks/roles/borg-backup-server/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/borg-backup-server/tasks/main.yaml b/playbooks/roles/borg-backup-server/tasks/main.yaml index 914b5c4a2a..5ea555008d 100644 --- a/playbooks/roles/borg-backup-server/tasks/main.yaml +++ b/playbooks/roles/borg-backup-server/tasks/main.yaml @@ -56,7 +56,7 @@ - name: Build all borg users from backup hosts set_fact: - borg_users: '{{ borg_users }} + [ {{ hostvars[item]["borg_user"] }} ]' + borg_users: '{{ borg_users + [hostvars[item]["borg_user"]] }}' with_inventory_hostnames: 'borg-backup:!disabled' - name: Create borg users