diff --git a/update-host b/update-host new file mode 100644 index 0000000..70cb757 --- /dev/null +++ b/update-host @@ -0,0 +1,21 @@ +--- +- hosts: all + become: yes + + tasks: + - name: Apt Update + ansible.builtin.apt: + update_cache: true + + - name: Apt Upgrade + ansible.builtin.apt: + upgrade: yes + update_cache: yes + + - name: Apt Autoremove + ansible.builtin.apt: + autoremove: yes + + - name: Apt Autoclean + ansible.builtin.apt: + autoclean: true \ No newline at end of file