使用来自python子进程的ansible。
ansible-subprocess的Python项目详细描述
#ansible子流程
[![构建状态](https://travis-ci.org/uehara1414/ansible-subprocess.svg?branch=master)(https://travis ci.org/uehara1414/ansible subprocess)
ansible子流程通过子流程模块动态运行ansible。
stderr=run_playbook('playbooks/sample2.yml',
['127.0.0.1','127.0.0.2'],
额外变量={'var1':'hoge','var2':'fuga'},
额外选项=['--syntax check'])
状态,stdout,stderr=运行ping(['8.8.8.8'])
````
[![构建状态](https://travis-ci.org/uehara1414/ansible-subprocess.svg?branch=master)(https://travis ci.org/uehara1414/ansible subprocess)
ansible子流程通过子流程模块动态运行ansible。
stderr=run_playbook('playbooks/sample2.yml',
['127.0.0.1','127.0.0.2'],
额外变量={'var1':'hoge','var2':'fuga'},
额外选项=['--syntax check'])
状态,stdout,stderr=运行ping(['8.8.8.8'])
````