Flatten the list

This commit is contained in:
Reynir Björnsson 2022-11-16 16:24:22 +01:00
parent c802777867
commit 5a54eb6b1e
1 changed files with 1 additions and 1 deletions

View File

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