diff --git a/playbooks/tasks/sync-ssh-hostkeys.yml b/playbooks/tasks/sync-ssh-hostkeys.yml index 18f8a40dbe1b046f9f68878ed82daeef3c524154..a8232ead9d8b82bcee5d7a7b9cb22da9112a3af5 100644 --- a/playbooks/tasks/sync-ssh-hostkeys.yml +++ b/playbooks/tasks/sync-ssh-hostkeys.yml @@ -16,7 +16,7 @@ - name: Fetch known_hosts shell: | set -eo pipefail - ssh-keyscan -p {{ ansible_port | default(22) }} 127.0.0.1 2>/dev/null \ + ssh-keyscan -q -p {{ ansible_port | default(22) }} 127.0.0.1 2>/dev/null \ | sed -E 's/^(\[?)127\.0\.0\.1/\1{{ inventory_hostname }}/' \ | sort environment: