2015-10-03 20:19:50 +00:00
|
|
|
---
|
|
|
|
- name: Disable ferm
|
|
|
|
service: name=ferm state=stopped enabled=no
|
|
|
|
|
|
|
|
- name: Create etcd2 environment vars dir
|
|
|
|
file: path=/etc/systemd/system/etcd2.service.d state=directory
|
|
|
|
|
|
|
|
- name: Write etcd2 config file
|
2015-11-20 10:18:37 +00:00
|
|
|
template: src=etcd2.j2 dest=/etc/systemd/system/etcd2.service.d/10-etcd2-cluster.conf backup=yes
|
2015-10-03 20:19:50 +00:00
|
|
|
notify:
|
|
|
|
- reload systemd
|
|
|
|
- restart etcd2
|
|
|
|
|
|
|
|
- name: Ensure etcd2 is running
|
|
|
|
service: name=etcd2 state=started enabled=yes
|