内置变量version:版本信息 获取清单中的信息 1.获取主机信息 vim /etc/ansible/hosts [test-group] 172.25.254.2 aplox.bbcc.com ansible_host=172.25.254.3 server4