From fe6f75b29804d65cab3f47eab98adfb08c8ea92c Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Wed, 14 Jul 2021 14:01:18 +0300 Subject: [PATCH] unquote ssh_keys_sshdir in authorized-keys.yml for propper expansion --- tasks/authorized-keys.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/authorized-keys.yml b/tasks/authorized-keys.yml index bda0958..2fd45a6 100644 --- a/tasks/authorized-keys.yml +++ b/tasks/authorized-keys.yml @@ -5,7 +5,7 @@ user: "{{ item.owner }}" key: "{{ lookup('file', item.src) }}" state: "{{ item.state | default('present') }}" - path: "{{ item.path | default('~' + item.owner + '/{{ ssh_keys_sshdir }}/authorized_keys') }}" + path: "{{ item.path | default('~' + item.owner + '/' + {{ ssh_keys_sshdir }} + '/authorized_keys') }}" with_items: "{{ ssh_keys_authorized_keys }}" tags: ssh-keys-authorized-keys-setup