From: Kristof Provost Date: Fri, 5 May 2023 09:29:14 +0000 (+0200) Subject: ansible: Add the mac for the first machine X-Git-Url: https://git.sigsegv.be/?a=commitdiff_plain;h=d5748e12412cf7990c021980f87685e85d58649a;p=pennestraat-domotica ansible: Add the mac for the first machine --- diff --git a/ansible/scripts/set_hostname b/ansible/scripts/set_hostname index 8500549..71b0fd9 100755 --- a/ansible/scripts/set_hostname +++ b/ansible/scripts/set_hostname @@ -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)"