diff --git a/ansible/playbooks/weekly/apt.yml b/ansible/playbooks/weekly/apt.yml index 673acbe..3863d29 100644 --- a/ansible/playbooks/weekly/apt.yml +++ b/ansible/playbooks/weekly/apt.yml @@ -1,7 +1,17 @@ -- hosts: "*" +--- +- name: Weekly System Update + hosts: all become: true tasks: - - name: apt + - name: Update apt cache apt: update_cache: yes - upgrade: 'yes' \ No newline at end of file + + - name: Upgrade all packages + apt: + upgrade: dist + + - name: Remove unnecessary packages + apt: + autoremove: yes + purge: yes