diff --git a/tasks/main.yml b/tasks/main.yml index 050b52a..79626d0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -26,7 +26,10 @@ tags: ['users','configuration'] - name: SSH keys - authorized_key: user="{{item.0.username}}" key="{{item.1}}" + authorized_key: + user: "{{item.0.username}}" + key: "{{item.1}}" + path: "/home/{{item.0.username}}/.ssh/authorized_keys" with_subelements: - "{{users}}" - ssh_key