diff --git a/mikrotikbackup_clean.yml b/mikrotikbackup_clean.yml index e121c7c..ec555dc 100644 --- a/mikrotikbackup_clean.yml +++ b/mikrotikbackup_clean.yml @@ -121,10 +121,12 @@ tags: [upgrade, never] - name: Wait for router to come back online after reboot - ansible.builtin.wait_for_connection: - delay: 180 - timeout: 300 - sleep: 10 + community.routeros.command: + commands: /system resource print + register: reboot_wait + until: reboot_wait is not failed + retries: 30 + delay: 15 when: - installed_version != latest_version - upgrade_result is not failed