- name: Update cache and install a list of COMMON packages with a list variable ansible.builtin.yum: name: "{{ packages }}" update_cache: true vars: packages: - telegraf - wget