diff options
Diffstat (limited to '')
-rw-r--r-- | roles/apt/tasks/main.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml new file mode 100644 index 0000000..f26a1f7 --- /dev/null +++ b/roles/apt/tasks/main.yml @@ -0,0 +1,20 @@ +- name: Upgrade packages + become: true + ansible.builtin.apt: + install_recommends: false + update_cache: true + upgrade: dist + notify: reboot + +- name: Reboot if necessary + ansible.builtin.meta: flush_handlers + +- name: Clean up dependencies + become: true + ansible.builtin.apt: + autoremove: true + purge: true + notify: reboot + +- name: Reboot if necessary + ansible.builtin.meta: flush_handlers |