- hosts: desktop tasks: - dnf: name={{item}} state=latest become: yes when: ansible_distribution == 'Fedora' with_items:
- "{{desktop_software}}"