1. Ansible-playbook 同一组相同主机

使用hostname作为ansible playbook的inventory entry key,这样这个inventory就可以执行两次。简单粗暴的解决问题。真是太棒了

[nova-compute] 
my_compute_cluster ansible_host=192.168.112.48 cluster_name=compute_cluster
my_edge_cluster ansible_host=192.168.112.48 cluster_name=edge_cluster

 参考:Ansible-playbook 同一组相同主机 - 简书 (jianshu.com)

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2021-11-18
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案