more new patterns
[ansible.git] / upgrade.yml
index 5da075998e294ad7c9cf4f7f81f40db86019f699..402de2ab2401b4e4bcdc19bb50cd8325b70a6b39 100644 (file)
@@ -1,8 +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:
+      NEEDRESTART_MODE: a
+    register: upgrade
+#  - debug: msg={{ upgrade.msg }}