summaryrefslogtreecommitdiff
path: root/script_local
diff options
context:
space:
mode:
Diffstat (limited to 'script_local')
-rwxr-xr-xscript_local11
1 files changed, 11 insertions, 0 deletions
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
+
+
+