From 8108b2df07097e0a0c59f812c7d366ef05be4377 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Fri, 24 Aug 2018 10:59:13 +0200 Subject: [PATCH] public keys --- tasks/ssh.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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