{"id":44755026,"url":"https://github.com/serverscom/ansible-collection-mitogen","last_synced_at":"2026-02-16T00:05:28.803Z","repository":{"id":65672493,"uuid":"597029736","full_name":"serverscom/ansible-collection-mitogen","owner":"serverscom","description":"Mitogen-enabling collection for Ansible","archived":false,"fork":false,"pushed_at":"2025-10-08T11:41:47.000Z","size":201,"stargazers_count":28,"open_issues_count":3,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-08T13:31:06.963Z","etag":null,"topics":["ansible"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverscom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-03T13:24:17.000Z","updated_at":"2025-03-25T19:48:40.000Z","dependencies_parsed_at":"2025-10-08T13:19:46.469Z","dependency_job_id":null,"html_url":"https://github.com/serverscom/ansible-collection-mitogen","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/serverscom/ansible-collection-mitogen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2Fansible-collection-mitogen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2Fansible-collection-mitogen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2Fansible-collection-mitogen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2Fansible-collection-mitogen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverscom","download_url":"https://codeload.github.com/serverscom/ansible-collection-mitogen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2Fansible-collection-mitogen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29494291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T00:00:57.352Z","status":"ssl_error","status_checked_at":"2026-02-15T23:56:34.338Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible"],"created_at":"2026-02-16T00:05:27.373Z","updated_at":"2026-02-16T00:05:28.795Z","avatar_url":"https://github.com/serverscom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collection for using Mitogen strategy\n\nThis collection allows to use [Mitogen](https://github.com/mitogen-hq/mitogen)\nstrategy without the need to specify absolute path to the strategy file.\n\nIt also performs live patching for oler versions of Mitogen (3.4), removing\nAnsible version restrictions, making it possible to use Mitogen\non unsupported versions.\n\nTested versions of ansible-core:\n\n* 2.14\n* 2.15\n* 2.16\n* 2.17\n* 2.18\n\nWhen needed, it patches `ansible_mitogen` code and unpatches it\nback right after module import, so the original\nfiles are kept intact.\n\nIf no patching needed, it just passes mitogen content as it is.\n\n## Install\nTo use this collection, you need to install Mitogen:\n\n```bash\npip install mitogen==0.3.29\n```\n\nThen, you need to install this collection:\n\n```bash\nansible-galaxy collection install serverscom.mitogen\n```\n\n## Usage\n\nThere are three ways to use this collection, and you need\nto choose only one option.\n\n\n### ansible.cfg\nAdd the following to your `ansible.cfg` file:\n```\nstrategy = serverscom.mitogen.mitogen_linear\n```\n\n### Environment variable\nYou can set `ANSIBLE_STRATEGY` environment variable:\n\n```\nANSIBLE_STRATEGY=serverscom.mitogen.mitogen_linear ansible-playbook ...\n```\n\n(This is my preferred way to use Mitogen).\n\n### Strategy stanza\n\nYou can use a `strategy` stanza in a play:\n\n```\n- hosts: all\n  strategy: serverscom.mitogen.mitogen_linear\n  tasks:\n   - debug:\n```\n\n# Dealing with mitogen bugs\n\nSome code may not run under Mitogen. The easiest way to opt-out of Mitogen\nfor problematic plays is to use the `linear` strategy:\n\n```\n- hosts: all\n  strategy: linear\n  tasks:\n    - debug:\n```\n\n# Acknowledgements\nbased on @ITD27M01 idea: https://github.com/mitogen-hq/mitogen/issues/961#issuecomment-1236291061\n\n# Disclamer\nServers.com is not responsible for any problems that may arise\nduring the use of this collection.\n\nMitogen is a separate project (https://github.com/mitogen-hq/mitogen)\nthat is well-known for speeding up Ansible in exchange for multiple\nstability issues. Servers.com does not provide support for\nMitogen-specific issues and may only address issues related\nto imports and/or patching of Mitogen.\n\nIf you want to make Mitogen better, please help upstream.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverscom%2Fansible-collection-mitogen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverscom%2Fansible-collection-mitogen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverscom%2Fansible-collection-mitogen/lists"}