aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/pacman/handlers/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/pacman/handlers/main.yml')
-rw-r--r--roles/pacman/handlers/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/pacman/handlers/main.yml b/roles/pacman/handlers/main.yml
new file mode 100644
index 0000000..ca9108b
--- /dev/null
+++ b/roles/pacman/handlers/main.yml
@@ -0,0 +1,11 @@
+- name: Show upgraded packages
+ ansible.builtin.debug:
+ var: pacman_result.packages
+ listen: pacman_upgraded
+
+- name: Reboot
+ become: true
+ ansible.builtin.reboot:
+ # 3 minutes is plenty.
+ reboot_timeout: 180
+ listen: pacman_upgraded