]> git.phdru.name Git - ansible.git/commitdiff
Feat(debian-update-all-apt): Update all packages
authorOleg Broytman <phd@phdru.name>
Fri, 28 Jun 2019 22:23:45 +0000 (01:23 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 16 Jul 2019 18:28:36 +0000 (21:28 +0300)
Update all installed packages to the latest state.

playbooks/debian-update-all-apt.yml

index 23a3d5dafec4e1942c10d6d70cfb01a1317b7c14..8422c489fdd79ce753cc86e0f0c1e8e288956e7e 100644 (file)
@@ -5,9 +5,10 @@
   tasks:
     - name: Updating host using apt
       apt:
-        update_cache: yes
-        upgrade: dist
-    - name: Clean unwanted olderstuff
-      apt:
+        autoclean: yes
         autoremove: yes
+        install_recommends: no
+        name: "*"
         purge: yes
+        state: latest
+        update_cache: yes