From: Oleg Broytman Date: Sun, 16 Jun 2019 15:23:02 +0000 (+0300) Subject: Add a playbook to update debian systems using apt X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=073b6e2b787792bb333d10a4e3efbab34ae25992;p=ansible.git Add a playbook to update debian systems using apt Add `playbooks/debian-update-all-apt.yml`. --- diff --git a/playbooks/debian-update-all-apt.yml b/playbooks/debian-update-all-apt.yml new file mode 100644 index 0000000..a804438 --- /dev/null +++ b/playbooks/debian-update-all-apt.yml @@ -0,0 +1,13 @@ +- hosts: all + name: Update Debian systems with apt + become: yes + gather_facts: false + tasks: + - name: Updating host using apt + apt: + update_cache: yes + upgrade: dist + - name: Clean unwanted olderstuff + apt: + autoremove: yes + purge: yes