Steven Robertson
Steven Robertson
+1 to this feature as well!
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
@badfiles do you have that collection installed? Collection support was added in #715. Does it work for you without Mitogen?
@badfiles @codefriar It's possible Mitogen is looking in the wrong place then. It uses `list_collection_dirs` from Ansible here: https://github.com/ansible/ansible/blob/v2.10.0/lib/ansible/collections/list.py#L49 to find collections to use during job runs.
It should be possible I think. Mitogen finds collections via the Ansible function `list_collection_dirs()` here: https://github.com/mitogen-hq/mitogen/blob/v0.3.0rc1/ansible_mitogen/planner.py#L569 , maybe there's a config setting we need to set to have it autosearch...
@badfiles what version of https://github.com/dj-wasabi/ansible-zabbix-agent/blob/master/tasks/RedHat.yml#L75 were you using? Is this the app that you were running?
😱 oh no, I missed `interpreter_python` support when adding in #658 . Definitely a bug, not sure when I'll be able to get to this but it'll be fixed up...
A new release will happen after #715 lands. I had planned for it to be released a lot earlier but the tests are proving to be a pain... 😞 things...
It's not ideal but in the meantime you could peg to the current `master` hash of the repo in your pip install as a temporary workaround to a new release...
@dsgnr new rc tags have been made: https://github.com/dw/mitogen/releases/tag/v0.2.10-rc.0 -> Ansible < 2.10 https://github.com/dw/mitogen/releases/tag/v0.3.0-rc.0 -> Ansible 2.10+ both tags have the fix (not `interpreter_python`, but `ansible_interpreter_python`). They're mostly ready, aside from...