ansible: Add the mac for the first machine
authorKristof Provost <kp@FreeBSD.org>
Fri, 5 May 2023 09:29:14 +0000 (11:29 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 5 May 2023 09:29:14 +0000 (11:29 +0200)
ansible/scripts/set_hostname

index 8500549..71b0fd9 100755 (executable)
@@ -30,7 +30,15 @@ find_hostname()
                return
        fi
 
-       echo "unknown"
+       if [ "$(host_id)" == "00:0d:b9:61:99:d0" ];
+       then
+               echo "pennestraat20"
+       fi
+
+       #penestraat22
+       #pennestraat22a
+
+       exit 1
 }
 
 sysrc hostname="$(find_hostname)"