---
- name: install extra packages from repo
  pacman:
    name: "{{ extra_packages }}"

- name: install host-specific packages from repo
  pacman:
    name: "{{ host_extra_packages }}"
  when: host_extra_packages | length > 0

- name: install AUR packages
  aur:
    name: "{{ extra_aur_packages }}"
  become_user: "{{ user.name }}"

- name: install ulauncher
  aur:
    name: ulauncher
  become_user: "{{ user.name }}"

- name: install host-specific packages from AUR
  aur:
    name: "{{ host_extra_aur_packages }}"
  become_user: "{{ user.name }}"
  when: host_extra_aur_packages is defined and host_extra_aur_packages|length > 0

---
- name: install extra packages from repo
  pacman:
    name: "{{ extra_packages }}"

- name: modify GoldenDict desktop file to work under Wayland
  lineinfile:
    path: /usr/share/applications/goldendict.desktop
    regexp: "^Exec=goldendict"
    line: "Exec=env QT_QPA_PLATFORM=xcb goldendict"

- name: install host-specific packages from repo
  pacman:
    name: "{{ host_extra_packages }}"
  when: host_extra_packages | length > 0

- name: install AUR packages
  aur:
    name: "{{ extra_aur_packages }}"
  become_user: "{{ user.name }}"

- name: install ulauncher
  aur:
    name: ulauncher
  become_user: "{{ user.name }}"

- name: install host-specific packages from AUR
  aur:
    name: "{{ host_extra_aur_packages }}"
  become_user: "{{ user.name }}"
  when: host_extra_aur_packages is defined and host_extra_aur_packages|length > 0

Fix GoldenDict desktop file to work under Wayland
Fix GoldenDict desktop file to work under Wayland
