--- - name: Install core packages hosts: "{{ my_hosts | d([]) }}" become: true tasks: - name: Install core packages ansible.builtin.apt: name: - prometheus-node-exporter - nfs-common update_cache: true