From 11f28355acef3c31f9da2a83bc309e6b33afab99 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Aug 2021 13:22:10 +0300 Subject: flush_handlers where needed --- roles/apt/tasks/main.yml | 8 +++++++- roles/pacman/tasks/main.yml | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml index 2d31607..f00d4fd 100644 --- a/roles/apt/tasks/main.yml +++ b/roles/apt/tasks/main.yml @@ -14,7 +14,10 @@ notify: - Reboot - Wait for connectivity - + + - name: Flush handlers + meta: flush_handlers + - name: Clean up dependencies apt: autoremove: yes @@ -22,3 +25,6 @@ notify: - Reboot - Wait for connectivity + + - name: Flush handlers + meta: flush_handlers diff --git a/roles/pacman/tasks/main.yml b/roles/pacman/tasks/main.yml index 64f2e4b..fe56fea 100644 --- a/roles/pacman/tasks/main.yml +++ b/roles/pacman/tasks/main.yml @@ -15,6 +15,9 @@ notify: - Reboot - Wait for connectivity + + - name: Flush handlers + meta: flush_handlers rescue: - fail: msg: Upgrading packages failed for an unknown reason! @@ -47,3 +50,6 @@ notify: - Reboot - Wait for connectivity + + - name: Flush handlers + meta: flush_handlers -- cgit v1.2.3