Questions tagged «environments»

2
根据操作系统在Ansible中使用角色和主机部署VM
我在解决如何最好地将主机/角色应用于Ansible中的不同操作系统时遇到问题。 我当前正在使用Ansible生成Windows / Mac / Linux VM,并且每个VM具有不同的角色,需要将其应用于它们。 我已经阅读了最佳实践并尝试遵循这些最佳实践,尤其是使用分组方法,但是我仍然不确定,因为它们大多提到了Web服务器和dbserver。 site.yml - name: Apply common configuration to all nodes hosts: all roles: - common - name: Configure and deploy test node 1 hosts: build-test-node roles: - build-machine-test-1 - name: Configure and deploy test node 2 hosts: build-test-node-2 roles: - build-machine-test-2 环境/测试/组 [win_build_nodes] …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.