mailman: set SUBSCRIBE_FORM_SECRET to protect better against spammers
[ansible.git] / upgrade.yml
index 31f6619df20dce2f29ccf122a902a7d92871341b..1b4ab6199a166cee81ed322e59ff112944fed870 100644 (file)
@@ -1,10 +1,13 @@
 - hosts: all
 - hosts: all
+  gather_facts: no
   tasks:
   tasks:
+  - name: autoremove
+    apt: autoremove=yes
+  - name: autoclean
+    apt: autoclean=yes
   - name: system upgrade
   - name: system upgrade
-    apt:
-      autoremove: yes
-      autoclean: yes
-      update_cache: yes
-      upgrade: dist
+    apt: update_cache=yes upgrade=dist
     environment:
     environment:
-      NEEDRESTART_MODE: automatically
+      NEEDRESTART_MODE: a
+    register: upgrade
+  - debug: msg={{ upgrade.msg }}