I'm using Ansible to setup my linux machines (Fedora) at home. I'm using the following to add flathub repo as part of role:
- name: Enable flatpak repository.
tags: repository,flatpak
community.general.flatpak_remote:
name: flathub
flatpakrepo_url: "https://dl.flathub.org/repo/flathub.flatpakrepo"
method: system
state: present
and then for example:
- name: Install VLC media player.
tags: software,vlc
community.general.flatpak:
name: org.videolan.VLC
state: present
Then ansible throws an error that VLC was not found.
When I use flatpak remotes
it shows:
Name | Options |
---|---|
fedora | system,oci |
flathub | system,filtered |
I have to use manually flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
and then remotes shows just system for flathub. After that adding VLC using Ansible works like charm.
Am I doing something wrong in he playbook / role?