gpt4 book ai didi

ansible - 在 Ansible 中的多个角色之间共享默认值?

转载 作者:行者123 更新时间:2023-12-04 17:35:37 24 4
gpt4 key购买 nike

我要分享 defaults在 Ansible 中的不同角色之间。可以直接实现吗?是否有解决方法,也许是解决此问题的另一种方法?我只想保持默认值 DRY。

最佳答案

您是否尝试将这些变量放在 /etc/ansible/group_vars/all 中? ?

来自 documentation :

Site wide defaults should be defined as a ‘group_vars/all’ setting.

关于ansible - 在 Ansible 中的多个角色之间共享默认值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20519549/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com