my11502207 发表于 2018-7-29 09:28:11

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
页: [1]
查看完整版本: ansible-cmdb