fix setup.sh

This commit is contained in:
tolerryan
2024-11-04 23:20:23 -06:00
parent 067a2454e9
commit e9d94ecab7

View File

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