| Summary: | ansible-core: ошибка при вызове модуля package_facts | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Alexander Makeenkov <amakeenk> |
| Component: | ansible-core | Assignee: | Andrey Cherepanov <cas> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P5 | CC: | cas |
| Version: | unstable | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
- Версия пакета 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 (но там с другим модулем).