aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-08-09 19:32:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-08-09 19:32:25 +0300
commitf063175f53d2e6c25d9a039091a38acab7faf70f (patch)
tree0c0ece7454fe18de26d9fe9f0debb0cf4f5625fd /roles
parentcommon: fix reboot module on Rasp. Pi 1 (diff)
downloadmaintenance-f063175f53d2e6c25d9a039091a38acab7faf70f.tar.gz
maintenance-f063175f53d2e6c25d9a039091a38acab7faf70f.zip
pacman: output changed packages
Diffstat (limited to '')
-rw-r--r--roles/pacman/tasks/main.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/pacman/tasks/main.yml b/roles/pacman/tasks/main.yml
index 5ebe638..37885f3 100644
--- a/roles/pacman/tasks/main.yml
+++ b/roles/pacman/tasks/main.yml
@@ -11,8 +11,13 @@
community.general.pacman:
update_cache: yes
upgrade: yes
+ register: pacman_result
notify: reboot
+ - debug:
+ var: pacman_result.packages
+ when: pacman_result.changed
+
- name: Flush handlers
meta: flush_handlers
rescue:
@@ -48,7 +53,12 @@
community.general.pacman:
update_cache: yes
upgrade: yes
+ register: pacman_result
notify: reboot
+ - debug:
+ var: pacman_result.packages
+ when: pacman_result.changed
+
- name: Flush handlers
meta: flush_handlers