From 2e0bb201109052bcf48e5b449932c0f29f25f1b5 Mon Sep 17 00:00:00 2001 From: citty Date: Fri, 15 Oct 2021 21:32:49 -0400 Subject: [PATCH] We want the name --- roles/immortal/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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