User's ssh-keys are a list that is now being iterated over

This commit is contained in:
Emmanouil Kampitakis
2020-02-27 07:56:20 +01:00
parent c13aa7bd6a
commit f95eef6f5b
2 changed files with 5 additions and 2 deletions

View File

@@ -12,5 +12,6 @@
- name: Copy local ssh key to authorized keys file
authorized_key:
user: "{{ os_user.name }}"
key: "{{ os_user.ssh_auth_key }}"
key: "{{ item }}"
loop: "{{ os_user.ssh_auth_keys }}"
become: true