]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian-update-all-apt.yml
Feat(debian-init-system): Configure `apt`
[ansible.git] / playbooks / debian-update-all-apt.yml
index a804438405d8e715fcdace7845cc27c46da5af41..8422c489fdd79ce753cc86e0f0c1e8e288956e7e 100644 (file)
@@ -1,13 +1,14 @@
-- hosts: all
-  name: Update Debian systems with apt
+- name: Update Debian systems with apt
+  hosts: "{{ hosts | default('all') }}"
   become: yes
   gather_facts: false
   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