diff --git a/deploy/ansible/tasks.yaml b/deploy/ansible/tasks.yaml index d1cdc3d..1451297 100644 --- a/deploy/ansible/tasks.yaml +++ b/deploy/ansible/tasks.yaml @@ -164,13 +164,9 @@ delegate_to: "{{ item.deploy_host }}" with_items: "{{ oramnode_endpoints.endpoints }}" - - name: Stop oramnode services - ansible.builtin.systemd: - name: "oblishard-oramnode-{{ item.id }}-{{ item.replicaid }}" - state: stopped - daemon_reload: true - delegate_to: "{{ item.deploy_host }}" - with_items: "{{ oramnode_endpoints.endpoints }}" + - name: Stop previous services + ansible.builtin.shell: + cmd: systemctl stop oblishard-* - name: Start oramnode services ansible.builtin.systemd: @@ -189,14 +185,6 @@ delegate_to: "{{ item.deploy_host }}" with_items: "{{ shardnode_endpoints.endpoints }}" - - name: Stop shardnode services - ansible.builtin.systemd: - name: "oblishard-shardnode-{{ item.id }}-{{ item.replicaid }}" - state: stopped - daemon_reload: true - delegate_to: "{{ item.deploy_host }}" - with_items: "{{ shardnode_endpoints.endpoints }}" - - name: Start shardnode services ansible.builtin.systemd: name: "oblishard-shardnode-{{ item.id }}-{{ item.replicaid }}" @@ -214,14 +202,6 @@ delegate_to: "{{ item.deploy_host }}" with_items: "{{ router_endpoints.endpoints }}" - - name: Stop router services - ansible.builtin.systemd: - name: "oblishard-router-{{ item.id }}" - state: stopped - daemon_reload: true - delegate_to: "{{ item.deploy_host }}" - with_items: "{{ router_endpoints.endpoints }}" - - name: Start router services ansible.builtin.systemd: name: "oblishard-router-{{ item.id }}"