setup.sh update

This commit is contained in:
tolerryan
2024-11-04 23:05:07 -06:00
parent 3f46f8332a
commit 082bfd80ec

View File

@@ -1,6 +1,6 @@
$!/bin/bash $!/bin/bash
ipnet = $1 ipnet = $1
ip = ${ipnet:0:${#ipnet}-4} ip = "${ipnet:0:${#ipnet}-4}"
until timeout 5 bash -c "</dev/tcp/$ip/22"; do until timeout 5 bash -c "</dev/tcp/$ip/22"; do
ansible-playbook --key-file "~/.ssh/setuproot.key.priv" -i $ip, ./.ansible.d/setup.yml ansible-playbook --key-file "~/.ssh/setuproot.key.priv" -i $ip, ./.ansible.d/setup.yml
sleep 1 sleep 1