Skip to content

Module to easily execute a Ansible 2.0 object with Python

License

Notifications You must be signed in to change notification settings

Mithweth/python-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-ansible

Easily execute Ansible Task and Playbooks

Installation

python setup.py install

Unit tests

python setup.py test

Usage

import pyansible
pb = pyansible.Playbook('playbook.yml', inventory='/etc/ansible/hosts')
if pb.run():
  print "Success!"
else:
  print "Failed!"

About

Module to easily execute a Ansible 2.0 object with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages