aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/my_server/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/my_server/tasks')
-rw-r--r--roles/my_server/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/my_server/tasks/main.yml b/roles/my_server/tasks/main.yml
index 277f2d1..36cb4cc 100644
--- a/roles/my_server/tasks/main.yml
+++ b/roles/my_server/tasks/main.yml
@@ -9,8 +9,8 @@
become: true
# community.docker.docker_compose is too confusing for me to use, sorry.
shell: |
- docker-compose pull --quiet && \
- docker-compose build --pull && \
- docker-compose up -d
+ docker-compose pull -q && \
+ docker-compose build --force-rm --pull -q && \
+ docker-compose up --remove-orphans -d
args:
chdir: '{{ server_dir }}'