---
title: "Discussion on \"Migrating Ansible roles to Python\" | Hashnode"
description: "Discussion on \"Migrating Ansible roles to Python\". Using an Ansible role from a Python program is awkward: the role is YAML executed by Ansible's runner, so Python can only shell out to it or translate its behavior by hand. That makes roles difficult"
url: "https://hashnode.com/posts/migrating-ansible-roles-to-python/6b12b16d2d059966dcc1c80a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Migrating Ansible roles to Python](https://reemote.hashnode.dev/migrating-ansible-roles-to-python?utm_source=hashnode&utm_medium=feed)

Using an Ansible role from a Python program is awkward: the role is YAML executed by Ansible's runner, so Python can only shell out to it or translate its behavior by hand. That makes roles difficult

8h ago · 21 min read · reemote.hashnode.dev  
Read the article

## Written by

[kimjarvis](https://hashnode.com/@kimbo)

@kimbo · Dublin, Ireland

  
[View profile](https://hashnode.com/@kimbo)

Maintainer of the Reemote configuration managment library

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
