From 5cbb4a03987cce93ebd22ce36ddf4444f23c8bad Mon Sep 17 00:00:00 2001 From: Farhad Shahbazi Date: Mon, 2 May 2016 11:05:10 +0200 Subject: [PATCH] manage root ssh-keys exclusively --- tasks/openssh.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/openssh.yml b/tasks/openssh.yml index 3890efb..3d8e691 100644 --- a/tasks/openssh.yml +++ b/tasks/openssh.yml @@ -14,7 +14,6 @@ tags: ['common', 'openssh'] - name: openssh - root keys - authorized_key: user="root" key="{{ item }}" - with_items: "{{ common_openssh_keys_root }}" + authorized_key: user="root" key="{{ common_openssh_keys_root | join("\n") }}" exclusive=yes when: common_openssh_keys_root tags: ['common', 'openssh', 'ssh-keys']