add deploy-hostname script

This commit is contained in:
Daniel Micay 2025-11-06 19:54:19 -05:00
parent ddc56da224
commit 3c248a9bd0

14
deploy-hostname Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
. shared.sh
. hosts.sh
for host in ${hosts_all[@]}; do
remote=root@$host
echo
echo $host
echo
ssh $remote hostnamectl hostname ${hosts_hostname[$host]}
done