community.general icon indicating copy to clipboard operation
community.general copied to clipboard

Flatpak reports no matches for the first item in a list

Open tandy-1000 opened this issue 3 years ago • 2 comments

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

tandy-1000 avatar Aug 01 '22 20:08 tandy-1000

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.

click here for bot help

ansibullbot avatar Aug 01 '22 20:08 ansibullbot

cc @JayKayy @oolongbrothers click here for bot help

ansibullbot avatar Aug 01 '22 20:08 ansibullbot

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.

click here for bot help

ansibullbot avatar Nov 05 '22 21:11 ansibullbot