From 073b6e2b787792bb333d10a4e3efbab34ae25992 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 16 Jun 2019 18:23:02 +0300 Subject: [PATCH] Add a playbook to update debian systems using apt Add `playbooks/debian-update-all-apt.yml`. --- playbooks/debian-update-all-apt.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 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 -- 2.39.2