groups : 资产文件中的组和主机
group_names :用于标识当前正在执行task的目标主机位于的组
inventory_hostname:是指inventory资产文件中的主机的名称,常用来修改主机名与资产文件中一致,由于其它一些神秘原因你不想使用自发现的主机名 ansible_hostname 时, 你可以使用 inventory_hostname,如果主机的FQDN很长,那么inventory_hostname_short则会只包含域名第一个分号之前的部分,而舍弃其它部分
ansible_nodename: 作为系统报告的主机名

相关文章:

  • 2022-12-23
  • 2021-08-17
  • 2021-09-09
  • 2021-12-30
  • 2021-11-24
  • 2021-12-11
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2021-05-25
  • 2022-01-09
  • 2021-10-14
  • 2021-04-15
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案