运行时
etcd -peer-addr 127.0.0.1:7001 -addr 127.0.0.1:4001 -data-dir machines/machine1 -name machine1 &
我必须按回车键才能返回控制台和 etcd 在后台运行
ANSIBLE
如何使用 ansible 重新创建此目的?
我想以这种方式用 ansible 启动 etcd
- name: run etcd like leader
shell: "etcd -peer-addr 127.0.0.1:7001 -addr 127.0.0.1:4001 -data-dir machines/machine1 -name machine2 &"
ansible 保持返回命令,不再继续下一个任务。
也许解决方案正在后台运行 etcd。我不知道如何
使用
安可 1.6.6
等 0.4.6