--- - name: Install lilypond (Archlinux) become: true pacman: name: - lilypond when: ansible_facts['distribution'] == 'Archlinux' - name: Install lilypond (Debian) become: true apt: name: - lilypond when: ansible_facts['distribution'] == 'Debian'