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.
两个节点的服务都已停止,我只想同时完成其他所有操作,但不应该有任何停机时间,有人可以帮我解决这个问题。作业在 Bamboo 中设置
通过将其添加到您的剧本中,配置 ansible 以一一配置主机:
serial: 1
文档:https ://docs.ansible.com/ansible/latest/user_guide/playbooks_strategies.html#setting-the-batch-size-with-serial
这假设您的 playbook 具有在停止服务之后和继续到下一个主机之前启动服务的任务。