@ -68,7 +68,7 @@
|
||||
|
||||
- name: Scan public keys
|
||||
ansible.builtin.command:
|
||||
cmd: "ssh-keyscan -t rsa {{ item.ip }}"
|
||||
cmd: "ssh-keyscan -t rsa {{ item.ip }} | grep ^[^#]"
|
||||
register: publickeys
|
||||
with_items: "{{ nodes }}"
|
||||
|
||||
|
Reference in New Issue
Block a user