【发布时间】:2015-12-08 05:02:35
【问题描述】:
如果您有不同的阶段变量,您建议使用什么方法来组织使用 Ansible 的多阶段部署?
主要思想是为不同阶段定义组变量。
有两篇文章:
- http://rosstuck.com/multistage-environments-with-ansible/
- http://toja.io/using-host-and-group-vars-files-in-ansible/
我想获得更多关于组织剧本、变量和主机的示例,并了解您的方法的优缺点。
【问题讨论】:
-
你能举例说明你的意思吗?
标签: deployment ansible ansible-inventory