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
|
- name: Give all users exclusively the current controller user's SSH key
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
user: "{{item}}"
|
user: "{{item['name']}}"
|
||||||
state: present
|
state: present
|
||||||
key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"
|
key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"
|
||||||
exclusive: yes
|
exclusive: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user