Strip ssh-keyscan header
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2022-04-20 09:02:29 +02:00
parent a52d8014d1
commit 4a8a154a01
1 changed files with 1 additions and 1 deletions

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