diff --git a/tasks/ssh.yml b/tasks/ssh.yml index f2d9d0d..f69fe01 100644 --- a/tasks/ssh.yml +++ b/tasks/ssh.yml @@ -19,7 +19,7 @@ - name: Add public key for deploy user authorized_key: user: "{{ item.username }}" - key: "{{ deploy_public_key }}" + key: "{{ lookup('file', deploy_public_key) }}" with_items: "{{ deploy_users }}" register: add_identity_key