another way to stop and start

This commit is contained in:
Alexander Kolotov 2020-06-02 02:45:20 +03:00
parent b86090a5a0
commit 994562a8b9

@ -10,7 +10,7 @@
- debug: var=docker1out.stdout_lines - debug: var=docker1out.stdout_lines
- name: get status for poabridge - name: get status for poabridge
shell: systemctl status poabridge shell: /etc/init.d/poabridge status
register: serviceout register: serviceout
- debug: var=serviceout.stdout_lines - debug: var=serviceout.stdout_lines
@ -18,6 +18,9 @@
- name: stop the service - name: stop the service
shell: service poabridge stop shell: service poabridge stop
- name: force to stop redis and rabit
shell: docker rm -f oracle_rabbit_1 oracle_redis_1 || true
- name: get statuses for docker containers - name: get statuses for docker containers
shell: docker ps -a shell: docker ps -a
register: docker2out register: docker2out
@ -50,7 +53,11 @@
loop_var: file loop_var: file
- name: start the service - name: start the service
shell: service poabridge start #shell: service poabridge start
shell: /etc/init.d/poabridge start
register: startout
- debug: var=startout.stdout_lines
- name: get statuses for docker containers - name: get statuses for docker containers
shell: docker ps -a shell: docker ps -a