Skip to main content

Using Ansible from python subprocess.

Project description

# ansible-subprocess
[![Build Status](](

ansible-subprocess run Ansible dynamically via the subprocess module.

## Demo

from ansible_subprocess import run_playbook, run_ping
status, stdout, stderr = run_playbook('playbooks/sample.yml', 'web')
status, stdout, stderr = run_playbook('playbooks/sample2.yml',
['', ''],
extra_vars={'var1': 'hoge', 'var2': 'fuga'},
status, stdout, stderr = run_ping([''])

## Installation

pip install ansible-subprocess

## License

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ansible-subprocess-0.3.0.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page