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 剧本来运行多架构集群。现在,要做到这一点,我需要做出具体的决定。是否有任何 ansible 模块可以帮助我做到这一点?或者有什么方法可以让我知道拱门并在“何时”条件语句中使用它?
使用该debug模块显示目标的事实并选择最适合您的条件。
debug
ansible_architecture作为一个开始。ansible_os_family, ansible_distribution... 适合你的任何东西。
ansible_architecture
ansible_os_family
ansible_distribution