- name: install libreoffice
  community.general.pacman:
    name:
      - ttf-liberation
      - "libreoffice-{{ applications.libreoffice.flavor }}"
    state: present

- name: install libreoffice language packages
  community.general.pacman:
    name: "libreoffice-{{ applications.libreoffice.flavor }}-{{ item }}"
    state: present
  loop: "{{libreoffice_languages}}"
