c12s-kubespray/roles/etcd/tasks/configure.yml
2015-12-15 11:49:11 +01:00

19 lines
523 B
YAML

---
- name: Copy etcd2.service systemd file
template:
src: systemd-etcd2.service.j2
dest: /lib/systemd/system/etcd2.service
backup: yes
notify:
- restart etcd2
- name: Create etcd2 environment vars dir
file: path=/etc/systemd/system/etcd2.service.d state=directory
- name: Write etcd2 config file
template: src=etcd2.j2 dest=/etc/systemd/system/etcd2.service.d/10-etcd2.conf backup=yes
notify:
- restart etcd2
- name: Ensure etcd2 is running
service: name=etcd2 state=started enabled=yes