// Aula 5 - Como criar um inventário do Ansible # hosts.cfg [webservers] web1 web2 [databases] db1 db2 [ubuntu] web1 db1 [rocky] web2 db2 [webservers] web[1:2] [all_servers] 192.168.15.[11:15] [servidores:children] ubuntu rocky # vim hosts.cfg [webservers] web1 web2 [databases] db1 db2 [ubuntu] web1 db1 [rocky] web2 db2 [servidores:children] ubuntu rocky # ansible-inventory -i hosts.cfg --list --yaml # cat hosts.cfg ansible.cfg [defaults] inventory = ~/ansible/hosts.cfg