vm-install: Remove hosts from known hosts in the playbook
[noc.git] / ansible / remove-known-host.sh
diff --git a/ansible/remove-known-host.sh b/ansible/remove-known-host.sh
deleted file mode 100755 (executable)
index 2c5fd7f..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-if [ -z "$1" ]; then
-  echo "$0 <host>"
-  exit 1
-fi
-
-SHORT="r3-${1%%.*}"
-SSH_HOST=$(ssh -G "$SHORT" | grep "^hostname " | awk '{ print($2) }' )
-
-for name in $SHORT $SSH_HOST; do
-  ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[$name]:22000"
-done
-
-exit 0