From 4d27d38e49a13deb7599f423de6384e24bf67edc Mon Sep 17 00:00:00 2001 From: Alex-Devera Date: Mon, 16 Dec 2024 14:04:19 +0300 Subject: [PATCH] gpt help --- update-upgrade.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/update-upgrade.yml b/update-upgrade.yml index 17a5009..6752582 100644 --- a/update-upgrade.yml +++ b/update-upgrade.yml @@ -1,7 +1,17 @@ -name: Test playbook +--- +- name: Update repositories and upgrade packages on Ubuntu + hosts: all + become: yes tasks: - become: yes - apt: - update_cache: yes - upgrade: yes - cache_valid_time: 86400 \ No newline at end of file + - name: Update apt cache + apt: + update_cache: yes + + - name: Upgrade all packages to the latest version + apt: + upgrade: dist + + - name: Remove unnecessary packages + apt: + autoremove: yes + autoclean: yes \ No newline at end of file