Ansible – Variables – Adding variables in host inventory file
In the below example variables are defined in the host inventory file. [root@centos9vm ~]# cat inventory === === === 192.168.132.129 192.168.132.130 servera.example.com [webservers] servera.example.com serverb.example.com [dbservers] serverc.example.com serverb.example.com servera.example.com [myGroups:children] webservers dbservers [testGRP] 192.168.132.130 [testGRP:vars]…