From 5a54eb6b1ef2d53a2647b4f60e12d07afc8e949a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Wed, 16 Nov 2022 16:24:22 +0100 Subject: [PATCH] Flatten the list --- roles/ubuntu_base/tasks/users.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ubuntu_base/tasks/users.yml b/roles/ubuntu_base/tasks/users.yml index dad2a2a..010666e 100644 --- a/roles/ubuntu_base/tasks/users.yml +++ b/roles/ubuntu_base/tasks/users.yml @@ -18,5 +18,5 @@ - name: "Add ssh authorized_keys to root user" authorized_key: user: "root" - key: "{{ users | default([]) | map(attribute='ssh_keys') | join('\n') }}" + key: "{{ users | default([]) | map(attribute='ssh_keys') | flatten | join('\n') }}" exclusive: true