community.general
                                
                                 community.general copied to clipboard
                                
                                    community.general copied to clipboard
                            
                            
                            
                        Flatpak reports no matches for the first item in a list
Summary
When installing a list of flatpaks, whichever flatpak is first in the list is reported to not have any matches.
Issue Type
Bug Report
Component Name
community.general.flatpak
Ansible Version
$  ansible --version
ansible [core 2.12.7]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/tandy/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /home/tandy/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.4 (main, Mar 25 2022, 00:00:00) [GCC 12.0.1 20220308 (Red Hat 12.0.1-0)]
  jinja version = 3.0.3
  libyaml = True
Community.general Version
$ ansible-galaxy collection list community.general
# /usr/lib/python3.10/site-packages/ansible_collections
Collection        Version
----------------- -------
community.general 4.8.2  
# /home/tandy/.ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.general 5.3.0  
Configuration
$ ansible-config dump --only-changed
OS / Environment
Fedora 36
Steps to Reproduce
- name: Add the Flathub remoate
  community.general.flatpak_remote:
    name: flathub
    state: present
    flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
- name: Install flatpaks
  community.general.flatpak:
    name:
      - com.borgbase.Vorta
      - com.github.alainm23.planner
      - com.bitwarden.desktop
      - net.cozic.joplin_desktop
      - org.signal.Signal
Expected Results
Expect all flatpaks to be installed.
Actual Results
TASK [install : Add the Flathub remoate] *****************************************************
ok: [localhost]
TASK [install : Install flatpaks] ************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/flatpak install --system --noninteractive flathub com.borgbase.Vorta com.github.alainm23.planner com.bitwarden.desktop net.cozic.joplin_desktop org.signal.Signal", "msg": "error: Nothing matches com.borgbase.Vorta in remote flathub", "rc": 1, "stderr": "error: Nothing matches com.borgbase.Vorta in remote flathub\n", "stderr_lines": ["error: Nothing matches com.borgbase.Vorta in remote flathub"], "stdout": "", "stdout_lines": []}
Code of Conduct
- [X] I agree to follow the Ansible Code of Conduct
Files identified in the description:
If these files are incorrect, please update the component name section of the description or use the !component bot command.
cc @JayKayy @oolongbrothers click here for bot help
Files identified in the description:
If these files are incorrect, please update the component name section of the description or use the !component bot command.