<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>55884</bug_id>
          
          <creation_ts>2025-09-05 15:50:16 +0300</creation_ts>
          <short_desc>ansible-core: ошибка при вызове модуля package_facts</short_desc>
          <delta_ts>2025-10-19 19:10:05 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ansible-core</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>272039</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-09-05 15:50:16 +0300</bug_when>
    <thetext>- Версия пакета
ansible-core-2.19.1-alt1

- Шаги воспроизведения
$ cat &gt; playbook.yml &lt;&lt;EOF
- name: &quot;test playbook&quot; 
  hosts: localhost
  connection: local
  gather_facts: yes

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

$ echo localhost &gt; hosts

$ ansible-playbook playbook.yml -i hosts

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

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

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

fatal: [localhost]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;Task failed: Module failed: Key of type &apos;bytes&apos; is not JSON serializable by the &apos;module_legacy_m2c&apos; profile.&quot;}

Похожая ошибка в апстриме https://github.com/ansible/ansible/issues/85036 (но там с другим модулем).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274958</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-10-19 19:10:05 +0300</bug_when>
    <thetext>ansible-core-2.19.3-alt1 -&gt; sisyphus:

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

    </bug>

</bugzilla>