Bug 55884 - ansible-core: ошибка при вызове модуля package_facts
Summary: ansible-core: ошибка при вызове модуля package_facts
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ansible-core (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-05 15:50 MSK by Alexander Makeenkov
Modified: 2025-10-19 19:10 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2025-09-05 15:50:16 MSK
- Версия пакета
ansible-core-2.19.1-alt1

- Шаги воспроизведения
$ cat > playbook.yml <<EOF
- name: "test playbook" 
  hosts: localhost
  connection: local
  gather_facts: yes

  tasks:
    - name: Gather the rpm package facts
      ansible.builtin.package_facts:
        manager: rpm
EOF

$ echo localhost > hosts

$ ansible-playbook playbook.yml -i hosts

- Получаемый результат

TASK [Gather the rpm package facts] 
[ERROR]: Task failed: Module failed: Key of type 'bytes' is not JSON serializable by the 'module_legacy_m2c' profile.
Origin: /home/test/playbook.yml:7:7

5
6   tasks:
7     - name: Gather the rpm package facts
        ^ column 7

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Task failed: Module failed: Key of type 'bytes' is not JSON serializable by the 'module_legacy_m2c' profile."}

Похожая ошибка в апстриме https://github.com/ansible/ansible/issues/85036 (но там с другим модулем).
Comment 1 Repository Robot 2025-10-19 19:10:05 MSK
ansible-core-2.19.3-alt1 -> sisyphus:

Fri Oct 10 2025 Andrey Cherepanov <cas@altlinux> 2.19.3-alt1
- New version.
- package_facts: fixed get binary RPM data (ALT #55884).
Wed Sep 24 2025 Andrey Cherepanov <cas@altlinux> 2.19.2-alt1
- New version.