2022-07-18 19:01:37 +02:00
|
|
|
---
|
2022-07-25 22:39:47 +02:00
|
|
|
- name: Update service
|
2023-08-30 23:21:24 +02:00
|
|
|
command: docker-compose pull
|
2022-07-18 19:01:37 +02:00
|
|
|
args:
|
|
|
|
chdir: /home/service-user
|
|
|
|
|
2022-07-25 22:39:47 +02:00
|
|
|
- name: Shut down service
|
2023-08-30 23:21:24 +02:00
|
|
|
command: docker-compose down
|
2022-07-18 19:01:37 +02:00
|
|
|
args:
|
|
|
|
chdir: /home/service-user
|
|
|
|
|
2022-07-25 22:39:47 +02:00
|
|
|
- name: Start service
|
2023-08-30 23:21:24 +02:00
|
|
|
command: docker-compose up -d
|
2022-07-18 19:01:37 +02:00
|
|
|
args:
|
|
|
|
chdir: /home/service-user
|
2023-08-30 23:35:26 +02:00
|
|
|
|
|
|
|
- name: Prune everything
|
|
|
|
community.docker.docker_prune:
|
|
|
|
containers: true
|
|
|
|
images: true
|
|
|
|
networks: true
|
|
|
|
volumes: true
|
|
|
|
builder_cache: true
|
2022-07-18 19:01:37 +02:00
|
|
|
...
|