--- - hosts: service remote_user: "{{ user }}" gather_facts: no vars: user: "zeus" tasks: # ------------------------ # apt update # ------------------------- - name: apt update packages become: true apt: update_cache: 'yes' force_apt_get: 'yes' upgrade: 'dist' cache_valid_time: 3600 install_recommends: true autoremove: true