diff --git a/deploy-hostname b/deploy-hostname new file mode 100755 index 0000000..e0d8886 --- /dev/null +++ b/deploy-hostname @@ -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