Skip to content

ansible-subprocess run Ansible dynamically via the subprocess module.

License

Notifications You must be signed in to change notification settings

nitzan-tz/ansible-subprocess

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-subprocess

Build Status

[Not maintained!]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',
                                      ['127.0.0.1', '127.0.0.2'],
                                      extra_vars={'var1': 'hoge', 'var2': 'fuga'},
                                      extra_options=['--syntax-check'])
status, stdout, stderr = run_ping(['8.8.8.8'])

Installation

pip install ansible-subprocess

License

MIT

About

ansible-subprocess run Ansible dynamically via the subprocess module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%