Do not restart etcd quickly

https://github.com/coreos/etcd/pull/2878

etcd destroys itself if you start and then restart etcd very rapidly.
So don't do that any more.
This commit is contained in:
Eric Paris 2015-06-15 15:43:03 -04:00
parent 70b7358d00
commit 9816488179
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,7 @@
---
- name: restart etcd
service: name=etcd state=restarted
when: etcd_started.changed == false
- name: Save iptables rules
command: service iptables save

View File

@ -14,7 +14,11 @@
- restart etcd
- name: Enable etcd
service: name=etcd enabled=yes state=started
service: name=etcd enabled=yes
- name: Start etcd
service: name=etcd state=started
register: etcd_started
- include: firewalld.yml
when: has_firewalld