X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian-update-all-apt.yml;h=8422c489fdd79ce753cc86e0f0c1e8e288956e7e;hb=89a3118f1a95f67d376347ddc0bc696dac16e82a;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