远程主机的分组

简单的分组[]内是组名

  1. mail.example.com
  2. [webservers]
  3. foo.example.com
  4. bar.example.com
  5. [dbservers]
  6. one.example.com
  7. two.example.com
  8. three.example.com
  9. [webservers]
  10. www[01:50].example.com
  11. [databases]
  12. db-[a:f].example.com

分组usa的子组还可以是其它的组,例如[usa:children]中还可以子组southeast, [southeast:children]中还可以包含atlanta和releigh

  1. [atlanta]
  2. host1
  3. host2
  4. [raleigh]
  5. host2
  6. host3
  7. [southeast:children]
  8. atlanta
  9. raleigh
  10. [usa:children]
  11. southeast
  12. northeast
  13. southwest
  14. northwest