From 431585b5256a0d08f4f3c33122465a88a93ddcb1 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 13 Aug 2023 14:59:36 +0100 Subject: Move all ansible files to their own folder --- ansible/local_testing/scripts/push-keys | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ansible/local_testing/scripts/push-keys (limited to 'ansible/local_testing/scripts/push-keys') diff --git a/ansible/local_testing/scripts/push-keys b/ansible/local_testing/scripts/push-keys new file mode 100644 index 0000000..6fdc85f --- /dev/null +++ b/ansible/local_testing/scripts/push-keys @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Intended to be used in the "control" VM to push keys to the other hosts + +for i in {1..6} ; do + ssh-keyscan 192.168.56.$i >> ~/.ssh/known_hosts + sshpass -p vagrant ssh-copy-id 192.168.56.$i +done -- cgit v1.2.3