首页 > 其他 > 详细

ansible设置串行的方法

时间:2017-07-05 13:07:02      阅读:564      评论:0      收藏:0      [点我收藏+]

ansible作为运维利器十分方便,如果部署服务,尽量用串行比较保险。答案来自 stackoverflow

--

You can use the forks with adhoc command and serial: 1 inside the playbook.

On adhoc command:

ansible aws -a "hostname" --forks=1

Inside the playbook:

- hosts: aws
  become: yes
  gather_facts: yes
  serial: 1
  tasks:
    - YOUR TASKS HERE

ansible设置串行的方法

原文:http://www.cnblogs.com/elsonwe/p/7120518.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!