From b479965a80e579ebad2b2b1ba7eca2d2cc04c13b Mon Sep 17 00:00:00 2001 From: GDWR Date: Fri, 10 Feb 2023 13:57:09 +0000 Subject: Add `local_testing` utilizing vagrant and virtualbox to create an environment that we can test ansible updates in --- local_testing/scripts/push-keys | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 local_testing/scripts/push-keys (limited to 'local_testing/scripts/push-keys') diff --git a/local_testing/scripts/push-keys b/local_testing/scripts/push-keys new file mode 100755 index 0000000..6fdc85f --- /dev/null +++ b/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