Refactor etcd role

- Run docker run from script rather than directly from systemd target
- Refactoring styling/templates

Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
This commit is contained in:
Sergii Golovatiuk
2017-03-23 17:56:30 +01:00
parent 6805d0ff2b
commit f144fd1ed3
7 changed files with 67 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
---
- name: Refresh config | Create etcd config file
template:
src: etcd.j2
src: etcd.env.yml
dest: /etc/etcd.env
notify: restart etcd
when: is_etcd_master