7 lines
208 B
Bash
Executable File
7 lines
208 B
Bash
Executable File
$!/bin/bash
|
|
ipnet = $1
|
|
ip = "${ipnet:0:${#ipnet}-4}"
|
|
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
|
|
done |