X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=playbooks%2Fdebian-update-all-apt.yml;h=8422c489fdd79ce753cc86e0f0c1e8e288956e7e;hb=4720b514057d5a996d3e572d05c7cdd7dcc09b52;hp=a804438405d8e715fcdace7845cc27c46da5af41;hpb=073b6e2b787792bb333d10a4e3efbab34ae25992;p=ansible.git diff --git a/playbooks/debian-update-all-apt.yml b/playbooks/debian-update-all-apt.yml index a804438..8422c48 100644 --- a/playbooks/debian-update-all-apt.yml +++ b/playbooks/debian-update-all-apt.yml @@ -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