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
This commit is contained in:
Ian Wienand 2022-11-22 09:40:09 +11:00
parent f40c52b01a
commit 476b225fca
No known key found for this signature in database

View File

@ -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