Bug 55884

Summary: ansible-core: ошибка при вызове модуля package_facts
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: ansible-coreAssignee: Andrey Cherepanov <cas>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: cas
Version: unstable   
Hardware: x86_64   
OS: Linux   

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.