From dce505c762d78e8fc29ecfcd4aa561f8918331fa Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Sun, 8 Jan 2023 04:52:19 +0100 Subject: [PATCH] playbook_sysupgrade: stringify garet_release when garet_release only contains digets, playbook_sysupgrade compared the string from the device itself against an integer from the inventory always triggering an upgrade. This should fix this corner case --- playbook_sysupgrade.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbook_sysupgrade.yml b/playbook_sysupgrade.yml index 238f72d..9d5d38b 100644 --- a/playbook_sysupgrade.yml +++ b/playbook_sysupgrade.yml @@ -16,6 +16,10 @@ setup: filter: ansible_local + - name: stringify garet_release... + set_fact: + garet_release: "{{ garet_release | string }}" + - name: handle update block: - name: upload new firmware