Skip to content

Instantly share code, notes, and snippets.

@privateip
privateip / gist:879683a0172415c408fb2afb82a97511
Created April 26, 2018 19:34
how to use ansible runner programatically
import os
import json
import tempfile
import subprocess
import ansible_runner
def run():
# create an Ansible playbook as a native Python dict object. Currently