diff --git a/roles/immortal/tasks/main.yml b/roles/immortal/tasks/main.yml index dd7c1ad..4e433c1 100644 --- a/roles/immortal/tasks/main.yml +++ b/roles/immortal/tasks/main.yml @@ -38,7 +38,7 @@ - name: Give all users exclusively the current controller user's SSH key ansible.posix.authorized_key: - user: "{{item}}" + user: "{{item['name']}}" state: present key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}" exclusive: yes