Add optional deployment mode for Docker etcd_deployment_type

Running etcd in Docker reduces the number of individual file
downloads and services running on the host.

Note: etcd container v3.0.1 moves bindir to /usr/local/bin

Fixes: #298
This commit is contained in:
Matthew Mosesohn
2016-06-24 15:25:16 +03:00
parent 65ece3bc1d
commit b3282cd0bb
12 changed files with 232 additions and 20 deletions

View File

@@ -8,7 +8,7 @@
- name: Restart etcd if binary changed
command: /bin/true
notify: restart etcd
when: etcd_copy.stdout_lines
when: etcd_deployment_type == "host" and etcd_copy.stdout_lines
# Reload systemd before starting service
- meta: flush_handlers