Fix weave deployment task names
This commit is contained in:
parent
6a7308d5c7
commit
c7fef6cb76
2 changed files with 13 additions and 13 deletions
|
@ -1,20 +1,20 @@
|
||||||
---
|
---
|
||||||
- name: restart docker
|
- name: Weave | restart docker
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
notify:
|
notify:
|
||||||
- Weave | reload systemd
|
- Weave | reload systemd
|
||||||
- Weave | reload docker
|
- Weave | reload docker
|
||||||
|
|
||||||
- name : Weave | reload systemd
|
|
||||||
shell: systemctl daemon-reload
|
|
||||||
when: ansible_service_mgr == "systemd"
|
|
||||||
|
|
||||||
- name: restart weave
|
- name: restart weave
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
notify:
|
notify:
|
||||||
- Weave | reload systemd
|
- Weave | reload systemd
|
||||||
- reload weave
|
- reload weave
|
||||||
|
|
||||||
|
- name : Weave | reload systemd
|
||||||
|
shell: systemctl daemon-reload
|
||||||
|
when: ansible_service_mgr == "systemd"
|
||||||
|
|
||||||
- name: restart weaveproxy
|
- name: restart weaveproxy
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
notify:
|
notify:
|
||||||
|
|
|
@ -7,17 +7,15 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- restart docker
|
- Weave | restart docker
|
||||||
|
|
||||||
- name: Write docker.service systemd file
|
- name: Write docker.service systemd file
|
||||||
template:
|
template:
|
||||||
src: systemd-docker.service
|
src: systemd-docker.service
|
||||||
dest: /lib/systemd/system/docker.service
|
dest: /lib/systemd/system/docker.service
|
||||||
notify: restart docker
|
notify: Weave | restart docker
|
||||||
when: ansible_service_mgr == "systemd" and ansible_os_family != "CoreOS"
|
when: ansible_service_mgr == "systemd" and ansible_os_family != "CoreOS"
|
||||||
|
|
||||||
- meta: flush_handlers
|
|
||||||
|
|
||||||
- name: Weave | Install weave
|
- name: Weave | Install weave
|
||||||
command: rsync -piu "{{ local_release_dir }}/weave/bin/weave" "{{ bin_dir }}/weave"
|
command: rsync -piu "{{ local_release_dir }}/weave/bin/weave" "{{ bin_dir }}/weave"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
@ -37,22 +35,24 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- restart systemd-weave
|
- restart weave
|
||||||
|
|
||||||
- name: Weave | Write weave systemd init file
|
- name: Weave | Write weave systemd init file
|
||||||
template: src=weave.service.j2 dest=/etc/systemd/system/weave.service
|
template: src=weave.service.j2 dest=/etc/systemd/system/weave.service
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
notify: restart systemd-weave
|
notify: restart weave
|
||||||
|
|
||||||
- name: Weave | Write weaveproxy systemd init file
|
- name: Weave | Write weaveproxy systemd init file
|
||||||
template: src=weaveproxy.service.j2 dest=/etc/systemd/system/weaveproxy.service
|
template: src=weaveproxy.service.j2 dest=/etc/systemd/system/weaveproxy.service
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
notify: restart systemd-weaveproxy
|
notify: restart weaveproxy
|
||||||
|
|
||||||
- name: Weave | Write weaveexpose systemd init file
|
- name: Weave | Write weaveexpose systemd init file
|
||||||
template: src=weaveexpose.service.j2 dest=/etc/systemd/system/weaveexpose.service
|
template: src=weaveexpose.service.j2 dest=/etc/systemd/system/weaveexpose.service
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
notify: restart systemd-weaveexpose
|
notify: restart weaveexpose
|
||||||
|
|
||||||
|
- meta: flush_handlers
|
||||||
|
|
||||||
- name: Weave | Enable weave
|
- name: Weave | Enable weave
|
||||||
service: name=weave enabled=yes state=started
|
service: name=weave enabled=yes state=started
|
||||||
|
|
Loading…
Reference in a new issue