diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-26 21:53:23 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-26 21:53:23 +0100 |
| commit | 83c2b5505fe2e91da2d7366c347bf7f26ab225c9 (patch) | |
| tree | 70930cb58f47ac82d246b2c5b144db03c6cfc23e /roles/network | |
| parent | ea12ae87f51b99f482ec2f65b54e54c1c0ff0ee8 (diff) | |
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
Diffstat (limited to 'roles/network')
| -rw-r--r-- | roles/network/meta/main.yml | 1 | ||||
| -rw-r--r-- | roles/network/tasks/main.yml | 4 |
2 files changed, 4 insertions, 1 deletions
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 != "" |
