--- - hosts: - network - webservers tasks: - name: Install vim, curl and htop become: true ansible.builtin.apt: pkg: - vim - htop - curl update_cache: yes cache_valid_time: 86400 # 1 day