- hosts: all become: true tasks: - name: Upgrade the OS (apt-get dist-upgrade) ansible.builtin.apt: upgrade: dist update_cache: true autoclean: true autoremove: true