From 8d91e24c7b8da3968ad813df4759c251ad99cc8e Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 12 Oct 2025 08:10:07 +0200 Subject: [PATCH] =?UTF-8?q?fix=20=F0=9F=90=9B:=20Update=20the=20hostname?= =?UTF-8?q?=20task=20to=20handle=20CPU=20strings=20correctly.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes an issue where the hostname task was not handling CPU strings properly, leading to incorrect output. --- tasks/hostname.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/hostname.yml b/tasks/hostname.yml index 3ccdbd5..8918eab 100644 --- a/tasks/hostname.yml +++ b/tasks/hostname.yml @@ -18,7 +18,9 @@ Processor(s): {% for cpu in ansible_processor %} - - {{ cpu }} + {% if cpu is string %} + - {{ cpu }} + {% endif %} {% endfor %} # ----------------------------------------------------------------------