Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Ansible 中的不同角色之间共享默认值。可以直接实现吗?是否有解决方法,也许是解决此问题的另一种方法?我只想保持默认值 DRY。
您是否尝试将这些变量放入/etc/ansible/group_vars/all?
/etc/ansible/group_vars/all
来自文档:
站点范围的默认值应定义为“group_vars/all”设置。