- hosts: - monitoring become: true vars: ansible_python_interpreter: /usr/bin/python3 tasks: - name: Update apt cache ansible.builtin.apt: update_cache: true cache_valid_time: 3600 upgrade: full