标签:name cts 比较 host 答案 sts 服务 部署 overflow
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
标签:name cts 比较 host 答案 sts 服务 部署 overflow
原文地址:http://www.cnblogs.com/elsonwe/p/7120518.html