July 2017
Intermediate to advanced
266 pages
6h 36m
English
Ansible provides the ability to not group any specific hosts that you want. Or mix and match grouped hosts with 'loose hosts'. This functionality allows the Ansible developer or user to simply add raw hostnames into the inventory host file and not attach it to a specific group. For this specific implementation, the hosts file would look something like the following:
loosehost.example.com[webservers]foo.mycorp.combar.mycorp.com[dbservers]apple.mycorp.compear.mycorp.compeaches.mycorp.com
As you can see from the screenshot, the raw entries that are not grouped are simply organized by IP address or hostname at the top of the inventory hosts file. This allows you to target these hosts by default automatically ...
Read now
Unlock full access