diff --git a/tasks/ssh.yml b/tasks/ssh.yml index 30297bc..f2d9d0d 100644 --- a/tasks/ssh.yml +++ b/tasks/ssh.yml @@ -18,8 +18,9 @@ - name: Add public key for deploy user authorized_key: - user: "{{ deploy_user.username }}" + user: "{{ item.username }}" key: "{{ deploy_public_key }}" + with_items: "{{ deploy_users }}" register: add_identity_key - name: Disable password login