- hosts: generic-linux tasks: - name: Perform system update apt: update_cache: yes upgrade: 'yes'