From 69b3a2cf08873de59883e3c2661ea1b57726eee3 Mon Sep 17 00:00:00 2001 From: jerome Date: Fri, 7 Feb 2025 11:40:40 +0100 Subject: premier commit --- script_local | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 script_local (limited to 'script_local') diff --git a/script_local b/script_local new file mode 100755 index 0000000..d344d5f --- /dev/null +++ b/script_local @@ -0,0 +1,11 @@ +#!/bin/bash +ssh-keygen -f ~/.ssh/known_hosts -R $1 +ssh-keyscan -H $1 >> ~/.ssh/known_hosts +ansible-playbook -u ansible --become -i "$1," playbooks/lxc.yml +sudo ip route del 10.0.3.0/24 +sudo ip route add 10.0.3.0/24 via $1 +ssh-keyscan -H -f playbooks/hosts >> ~/.ssh/known_hosts +ansible-playbook -u root -i playbooks/hosts playbooks/lamp.yml + + + -- cgit v1.2.3