fix setup.sh
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
ipnet=$1
|
||||
ip = ${ipnet:0:${#ipnet}-4}s
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user