You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
567 B

9 years ago
  1. ---
  2. - name: Create etcd user
  3. user: name=etcd shell=/bin/nologin home=/var/lib/etcd2
  4. - name: Install etcd binaries
  5. copy:
  6. src={{ local_release_dir }}/etcd/bin/{{ item }}
  7. dest={{ bin_dir }}
  8. owner=etcd
  9. mode=u+x
  10. with_items:
  11. - etcdctl
  12. - etcd
  13. notify:
  14. - restart daemons
  15. - name: Create etcd2 binary symlink
  16. file: src=/usr/local/bin/etcd dest=/usr/local/bin/etcd2 state=link
  17. - name: Copy etcd2.service systemd file
  18. template:
  19. src: systemd-etcd2.service.j2
  20. dest: /lib/systemd/system/etcd2.service
  21. notify: restart daemons