ansible-cmdb
从github拉取ansible-cmdb,执行python setup.pyinstall_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
页:
[1]