Strip ssh-keyscan header
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 09:02:29 +02:00
parent a52d8014d1
commit 4a8a154a01

View File

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