From d5748e12412cf7990c021980f87685e85d58649a Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Fri, 5 May 2023 11:29:14 +0200 Subject: [PATCH] ansible: Add the mac for the first machine --- ansible/scripts/set_hostname | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)" -- 2.51.0