$ ansible -m setup --tree /usr/local/lib/ansible-cmdb/out/ all (vagrant 계정으로) 위 명령을root로 실행하니 ssh_keyscan 값이 없어서 에러남 vagrant 계정으로 ssh_keyscan 으로 생성되어 있으므로 vargant 스크립트 돌림 < vargant 계정으로 /etc/ansible/hostst 파일을 인식한 파일 known_hosts >
< host 파일이 생성되는 화면 ... 생략 >< /usr/local/lib/ansible-cmdb/out/ 경로에 파일이 생성됨 /etc/ansible/hosts 파일에 5개 테스트 호스트 가지고 있음> # ansible-cmdb -i /etc/ansible/hosts out/ > /usr/share/nginx/html/ansible-cmdb.html * cmdb 데이터를 web서버 경로로 생성 /usr/share/nginx/html/ html 경로 퍼미션을 일단 777로 하고 root로 돌림 (vagrant 계정이로 돌리니 html 디렉토리 퍼미션 에러,,일단 퍼미션은 나중에 맞추기로 함)
# http://192.168.56.50/ansible-cmdb.html 파일 확인
< 56, 56 번 버는 안켜놓고 돌림 >
# 호스트 서버 ip를 클릭하면 #ansible -m setup 셋업으로 추출된 정보가 표출됨