From ea1cf9dc4342b69dbc701f3222fe1fc7c2b1c2f6 Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Tue, 10 Jan 2023 02:36:01 +0100 Subject: [PATCH] playbook_sysupgrade: fix fatal error on local connections issuing a "sysupgrade" through a jumphost makes ansible raise an "unrechable" error. issuing a "sysupgrade" through a direct connection makes ansible raise an "fatal" error. Because the latter case was not properly delt with the playbook aborted for that specific device. This commit fixes this problem. --- playbook_sysupgrade.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbook_sysupgrade.yml b/playbook_sysupgrade.yml index 9d5d38b..f8bae13 100644 --- a/playbook_sysupgrade.yml +++ b/playbook_sysupgrade.yml @@ -31,6 +31,7 @@ shell: cmd: "sysupgrade /tmp/{{ firmware_file | basename }} && exit 0" ignore_unreachable: yes + ignore_errors: yes - name: wait till device is back online wait_for_connection: