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