c12s-kubespray/roles/etcd/tasks/install.yml

18 lines
402 B
YAML
Raw Normal View History

2015-10-03 20:19:50 +00:00
---
- name: Create etcd user
user: name=etcd shell=/bin/nologin home=/var/lib/etcd2
- name: Install etcd binaries
2015-11-20 10:18:37 +00:00
copy:
2015-10-03 20:19:50 +00:00
src={{ local_release_dir }}/etcd/bin/{{ item }}
dest={{ bin_dir }}
owner=etcd
2015-12-17 21:46:50 +00:00
mode=0755
2015-10-03 20:19:50 +00:00
with_items:
- etcdctl
- etcd
2015-12-15 10:49:11 +00:00
notify: restart etcd2
2015-10-03 20:19:50 +00:00
- name: Create etcd2 binary symlink
file: src=/usr/local/bin/etcd dest=/usr/local/bin/etcd2 state=link