From 8c1f0b14d2be93e0dddaf10acca308b288aec98e Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 24 Dec 2025 07:37:56 +0100 Subject: [PATCH] =?UTF-8?q?fix=20=F0=9F=90=9B:=20Fix=20typo=20and=20add=20?= =?UTF-8?q?condition=20for=20bond0=20backing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes a typo in the `update_cache` value and adds a conditional check to ensure proper handling of `bond0` backing. --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 9a66d90..633c119 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,7 +6,7 @@ ansible.builtin.apt: name: ethtool state: present - update_cache: yes + update_cache: true # ============================================================ # Normalize and validate configuration @@ -103,6 +103,7 @@ label: "{{ item }}" - name: Check for bond0 backing + when: bond_info.rc == 0 block: - name: Detect if any bridge is backed by bond0 ansible.builtin.set_fact: @@ -115,7 +116,6 @@ (bond_info.stdout | regex_findall('Slave Interface: ([a-zA-Z0-9]+)')) | list }} when: wol_has_bond0 | default(false) - when: bond_info.rc == 0 # ============================================================ # Validate configuration and resolve to physical NICs