From e04e0564fe5f033ed784f88d5e9306d5b560ec53 Mon Sep 17 00:00:00 2001 From: amaurybsouza Date: Mon, 21 Oct 2019 08:03:57 -0300 Subject: [PATCH] playbook update-ubuntu --- playbooks/play-update_ubuntu.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 playbooks/play-update_ubuntu.yml diff --git a/playbooks/play-update_ubuntu.yml b/playbooks/play-update_ubuntu.yml new file mode 100644 index 0000000..159bc72 --- /dev/null +++ b/playbooks/play-update_ubuntu.yml @@ -0,0 +1,14 @@ +--- +- hosts: local + tasks: + - name: Upgrade all packages to the latest version + apt: + update_cache: yes + upgrade: yes + - name: Remove useless packages from the cache + apt: + autoclean: yes + - name: Remove dependencies that are no longer required + apt: + autoremove: yes +... \ No newline at end of file