{
  "id": 20317416,
  "title": "Ansible galaxy transpiled to python",
  "url": "https://urgent.news/2026/11/16/ansible-galaxy-transpiled-to-python",
  "topic": "science",
  "section": "Science",
  "published": "2026-11-16T19:36:09.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/kimbofab/ansible-galaxy-transpiled-to-python-gj9"
  },
  "original_language": "en",
  "account": "Ansible roles have been translated to Python, enabling infrastructure logic to be written as ordinary code with unit-testing capabilities using pytest, type checking with type checkers, and linting. This translation eliminates the expressive limitations of the YAML DSL and templating dialect. The Reemote library provides a Python framework that aligns with Ansible's facts, operations, and module vocabulary, allowing for the translation of roles into Python code. Reemote is now ready for use, with documentation available at reemote.org and the full source, examples, and tests in the EPL-2.0 git repository. The original Ansible role is not just a list of commands; it inherits operational guarantees such as lock-step execution across the fleet, --check mode previewing changes, and per-task, per-host reporting of changes. The translation process loses these guarantees when using a generic Python approach. The Reemote library provides a solution by offering a configuration management library in Python that mirrors Ansible's features. It ensures synchronous execution, structured results, a one-to-one module vocabulary, pure functional deploys, and independence from the controller's file system. This library comes with a set of example programs, including translations of ten Ansible Galaxy roles, which have been tested for idempotence. By using Reemote, the migration process becomes more manageable, as the model can adapt existing, verified, and tested code rather than designing a new configuration management system from scratch.",
  "summary": "Translating Ansible roles to Python turns infrastructure logic into ordinary code: unit-testable with pytest , checkable with type checkers and linters, and free of the expressive ceiling of a YAML DSL with a templating dialect. Until now the problem has been intractable, because Python had no configuration-management library shaped like Ansible to translate into — an AI asked to rewrite a role…",
  "key_points": [
    "Ansible roles translated to Python using Reemote library",
    "Reemote provides Python framework aligning with Ansible's features",
    "Migration process becomes manageable with existing, verified code"
  ],
  "editors_take": "Moving Ansible roles into Python via Reemote provides developers with standard software engineering tools like unit testing and type checking while maintaining the core operational guarantees of the original framework.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}