We want the name
This commit is contained in:
parent
d705d8d194
commit
2e0bb20110
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user