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.

23 lines
565 B

  1. ---
  2. - name: Configure | Copy etcd.service systemd file
  3. template:
  4. src: etcd.service.j2
  5. dest: /lib/systemd/system/etcd.service
  6. backup: yes
  7. when: init_system == "systemd"
  8. notify: restart etcd
  9. - name: Configure | Write etcd initd script
  10. template:
  11. src: deb-etcd.initd.j2
  12. dest: /etc/init.d/etcd
  13. owner: root
  14. mode: 0755
  15. when: init_system == "sysvinit" and ansible_os_family == "Debian"
  16. notify: restart etcd
  17. - name: Configure | Create etcd config file
  18. template:
  19. src: etcd.j2
  20. dest: /etc/etcd.env
  21. notify: restart etcd