Adhoc을 사용해 Inventory 관리하기

inventory

web.example.com
data.example.com

[lab]
labhost1.example.com
labhost2.example.com

[test]
test1.example.com
test2.example.com

[datacenter1]
labhost1.example.com
test1.example.com

[datacenter2]
labhost2.example.com
test2.example.com

[datacenter:children]
datacenter1
datacenter2

[new]
192.168.2.1
192.168.2.2

playbook의 hosts 부분 작성시 아래를 참조해서 간편하게 작성 가능하다

adhoc으로 host 확인하기

Untitled

그룹으로 host 확인

Untitled

모든 host

Untitled

ungrouped host 확인

Untitled

와일드카드를 사용해서 호스트 관리하기