ansible-cmdb
从github拉取ansible-cmdb,执行python setup.py
install_requires=[
'mako>=1.0',
'pyyaml>=1.0',
'ushlex>=0.99',
'jsonxs>=0.3',
cd /home && mkdir -p out
cd out && rm -rf *
cd /home
ansible -i /etc/ansible/addhosts/allhosts.py -m setup --tree out/ all >>/dev/null
/opt/soft/ansible-cmdb-master/src/ansible-cmdb -i /etc/ansible/addhosts/allhosts.py out/ > /home/wwwroot/zabbix/overview.html
本文转自 liqius 51CTO博客,原文链接:http://blog.51cto.com/szgb17/1975576,如需转载请自行联系原作者