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