We want the name

This commit is contained in:
citty 2021-10-15 21:32:49 -04:00
parent d705d8d194
commit 2e0bb20110

View File

@ -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