X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian-update-all-apt.yml;h=8422c489fdd79ce753cc86e0f0c1e8e288956e7e;hb=d93a94543aca4cce397db250b7dd561bf4729aa4;hp=223eaa285dbd97e4a150a04a8cdadf5a2c38bbb6;hpb=56156f76810459484bbc4ceff09150832a17d6b2;p=ansible.git diff --git a/playbooks/debian-update-all-apt.yml b/playbooks/debian-update-all-apt.yml index 223eaa2..8422c48 100644 --- a/playbooks/debian-update-all-apt.yml +++ b/playbooks/debian-update-all-apt.yml @@ -1,13 +1,14 @@ - name: Update Debian systems with apt - hosts: all + 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