prevent SMTP smuggling
[ansible.git] / upgrade.yml
index 31f6619df20dce2f29ccf122a902a7d92871341b..402de2ab2401b4e4bcdc19bb50cd8325b70a6b39 100644 (file)
@@ -1,10 +1,13 @@
 - hosts: all
+  gather_facts: no
   tasks:
+  - name: autoremove
+    apt: autoremove=yes
+  - name: autoclean
+    apt: autoclean=yes
   - name: system upgrade
-    apt:
-      autoremove: yes
-      autoclean: yes
-      update_cache: yes
-      upgrade: dist
+    apt: update_cache=yes upgrade=dist
     environment:
-      NEEDRESTART_MODE: automatically
+      NEEDRESTART_MODE: a
+    register: upgrade
+#  - debug: msg={{ upgrade.msg }}