|
@ -1,5 +1,5 @@ |
|
|
--- |
|
|
--- |
|
|
- name: Copy etcd.service systemd file |
|
|
|
|
|
|
|
|
- name: Configure | Copy etcd.service systemd file |
|
|
template: |
|
|
template: |
|
|
src: etcd.service.j2 |
|
|
src: etcd.service.j2 |
|
|
dest: /lib/systemd/system/etcd.service |
|
|
dest: /lib/systemd/system/etcd.service |
|
@ -8,7 +8,7 @@ |
|
|
notify: |
|
|
notify: |
|
|
- restart systemd-etcd |
|
|
- restart systemd-etcd |
|
|
|
|
|
|
|
|
- name: Write calico-node initd script |
|
|
|
|
|
|
|
|
- name: Configure | Write calico-node initd script |
|
|
template: |
|
|
template: |
|
|
src: deb-etcd.initd.j2 |
|
|
src: deb-etcd.initd.j2 |
|
|
dest: /etc/init.d/etcd |
|
|
dest: /etc/init.d/etcd |
|
@ -17,11 +17,11 @@ |
|
|
when: init_system == "sysvinit" and ansible_os_family == "Debian" |
|
|
when: init_system == "sysvinit" and ansible_os_family == "Debian" |
|
|
notify: restart etcd |
|
|
notify: restart etcd |
|
|
|
|
|
|
|
|
- name: Create etcd environment vars file |
|
|
|
|
|
|
|
|
- name: Configure | Create etcd environment vars file |
|
|
template: |
|
|
template: |
|
|
src: etcd.j2 |
|
|
src: etcd.j2 |
|
|
dest: /etc/etcd.env |
|
|
dest: /etc/etcd.env |
|
|
notify: restart etcd |
|
|
notify: restart etcd |
|
|
|
|
|
|
|
|
- name: Ensure etcd is running |
|
|
|
|
|
|
|
|
- name: Configure | Ensure etcd is running |
|
|
service: name=etcd state=started enabled=yes |
|
|
service: name=etcd state=started enabled=yes |