There are two default groups:

  1. all - all contains every host

  2. ungrouped - ungrouped contains all hosts that don’t have another group aside from all

Every host will always belong to at least 2 groups. Though all and ungrouped are always present, they can be implicit and not appear in group listings like group_names.

Inventory Program 1 - Group

Content of file "inventory"


mail.devopsschool.com

[webservers]
foo.devopsschool.com
bar.devopsschool.com

[dbservers]
one.devopsschool.com
two.devopsschool.com
three.devopsschool.com