add deploy-hostname script

This commit is contained in:
Daniel Micay 2025-11-06 19:54:19 -05:00
parent 37809b12ad
commit 5f5c590bbc

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