天天看點

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,如需轉載請自行聯系原作者