ansible-playbooks/roles/system/i18n/tasks/main.yml

29 lines
872 B
YAML
Raw Normal View History

# Interestingly, it is apparently available as a Flatpak. Surprisingly, it
# works as if you installed the native package on most repos.
---
- name: Install fcitx5 nightly Flatpak repo
flatpak_remote:
state: present
name: fcitx5-unstable
flatpakrepo_url: https://flatpak.fcitx-im.org/unstable-repo/fcitx5-unstable.flatpakrepo
- name: Install i18n tools
flatpak:
state: present
name: "{{ item }}"
remote: fcitx5-unstable
loop:
- org.fcitx.Fcitx5
- org.fcitx.Fcitx5.Addon.Zhuyin
- org.fcitx.Fcitx5.Addon.Unikey
- org.fcitx.Fcitx5.Addon.Rime
- org.fcitx.Fcitx5.Addon.Mozc
- org.fcitx.Fcitx5.Addon.ChineseAddons
- org.fcitx.Fcitx5.Addon.Lua
- name: Enable fcitx5 to autostart
copy:
src: "{{ role_path }}/files/org.fcitx.Fcitx5.desktop"
dest: "/etc/xdg/autostart/org.fcitx.Fcitx5.desktop"
setype: etc_t