From 83c2b5505fe2e91da2d7366c347bf7f26ab225c9 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 26 Feb 2026 21:53:23 +0100 Subject: Fix using od instead of xxd The od is available as part of coreutils which is shipping by default on linux but added for completeness Co-Authored-By: Claude.ai --- roles/network/meta/main.yml | 1 + roles/network/tasks/main.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'roles/network') diff --git a/roles/network/meta/main.yml b/roles/network/meta/main.yml index 9a2a0fd8..029cd125 100644 --- a/roles/network/meta/main.yml +++ b/roles/network/meta/main.yml @@ -1,6 +1,7 @@ --- dependencies: - role: "systemd" + - role: "coreutils" galaxy_info: author: "a14m" description: "Configure basic distro networking features" diff --git a/roles/network/tasks/main.yml b/roles/network/tasks/main.yml index f488e940..7832c364 100644 --- a/roles/network/tasks/main.yml +++ b/roles/network/tasks/main.yml @@ -59,8 +59,10 @@ # noqa: risky-shell-pipe since this is used early before bash configuration # it is the exception and needed to ensure that iwd is working on Mac machines # that only work with broadcom-wl and iwd + # od is part of coreutils which is available by default on Arch/Debian but + # added as role dependency for safty ansible.builtin.shell: - cmd: "printf '%s' '{{ network_wifi_ssid }}' | xxd -p | tr -d '\\n'" + cmd: "printf '%s' '{{ network_wifi_ssid }}' | od -A n -t x1 | tr -d ' \\n'" register: network_wifi_hex_ssid changed_when: false when: network_wifi_ssid != "" -- cgit v1.2.3