Add ansible_api so that python call ansible playbook by api. 59/18159/7
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>
Mon, 8 Aug 2016 15:33:33 +0000 (23:33 +0800)
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>
Sun, 21 Aug 2016 05:28:16 +0000 (13:28 +0800)
commit60cee12c6ea236516da78438f43aa7afb4efd375
treedea138d61906701401926f2cc35b99d7eb3a4e92
parent9d742933abcbce7ad604a4ba4c9611e81a2cf286
Add ansible_api so that python call ansible playbook by api.

modification:
    Add ansible_api so that we can get ansible running results easily.
    Add UT for ansible_api.py

JIRA:QTIP-99

Change-Id: I6e7b0b97e4d9ef184978833c61c17e944c1eb20c
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
func/ansible_api.py [new file with mode: 0644]
requirements.txt
tests/ansible_api_test.py [new file with mode: 0644]
tests/data/hosts [new file with mode: 0644]
tests/data/test.yml [new file with mode: 0644]