Skip to content
Snippets Groups Projects
Verified Commit 7b0a61c2 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Add docker-compose down on failure

parent 24476d3c
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,12 @@ ...@@ -37,6 +37,12 @@
register: install_command register: install_command
ignore_errors: yes ignore_errors: yes
- name: Remove containers on harbor setup failure
command: docker-compose down -v
args:
chdir: /home/{{ user }}/harbor
when: install_command.rc != 0
- name: Restart docker daemon on harbor setup failure - name: Restart docker daemon on harbor setup failure
systemd: systemd:
name: docker name: docker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment