Commit bd3a6571 authored by Chris Croome's avatar Chris Croome

extra docker check added

parent 9fb3c372
......@@ -49,6 +49,19 @@
- name: Pause before starting Collabora container
pause:
seconds: 60
- name: Manually check if the Collabora container is running
shell: docker ps | grep collabora | awk '{ print $1 }'
register: nextcloud_collabora_docker_container
- name: Stop the Collabora container manually
command: "docker stop {{ nextcloud_collabora_docker_container.stdout }}"
when: nextcloud_collabora_docker_container is defined and nextcloud_collabora_docker_container != ""
- name: Pause before starting Collabora container
pause:
seconds: 60
when: nextcloud_collabora_docker_container is defined and nextcloud_collabora_docker_container != ""
- name: Start the Collabora container
docker_container:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment