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