Closed anxstj closed 2 years ago
Does this work without Mitogen? It looks like a specific issue with the input json possibly 🤔 , https://stackoverflow.com/questions/48314367/ansible-local-test-new-module-with-errormodule-unable-to-decode-valid-json-on is related
Yes, it works without mitogen (uncomment strategy: mitogen_linear
).
Actually, the task comes from molecule-docker which fails for the same reason.
Encountered the same thing with the route53
module. Works without strategy: mitogen_linear
as well.
I faced the same issue with https://docs.ansible.com/ansible/latest/collections/google/cloud/gcp_iam_service_account_module.html
But it works with strategy: free
Seeing this with the iam_cert
module too
I just stumbled over this again, and recognized that the error happens only if the docker image is not present on the controller node.
For the record: It happens also with ansible-core 2.11:
ansible [core 2.11.2]
config file =~/.ansible.cfg
configured module search path = ['~/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/venv/lib/python3.9/site-packages/ansible
ansible collection location = ~/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/venv/bin/ansible
python version = 3.9.6 (default, Jul 16 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)]
jinja version = 3.0.1
libyaml = True
I can not reproduce the error with 0.3.2 or 0.3.3. I will close the issue.
The
docker_image_info
module fails to work with mitogon 0.3.0.Which version of Ansible are you running? 2.10.7
Is your version of Ansible patched in any way? no
Are you running with any custom modules, or
module_utils
loaded? noHave you tried the latest master version from Git? yes
Mention your host and target OS and versions Debian 10
Mention your host and target Python versions Python 3.7.3
If reporting a crash or hang in Ansible, please rerun with -vvv and include 200 lines of output around the point of the error, along with a full copy of any traceback or error text in the log. Beware "-vvv" may include secret data! Edit as necessary before posting.
If reporting any kind of problem with Ansible, please include the Ansible version along with output of "ansible-config dump --only-changed".
Example playbook which demonstrates the error:
The call which reproduces the error: