service-ansible/roles/update/tasks/main.yaml

25 lines
447 B
YAML
Raw Normal View History

---
2022-07-25 22:39:47 +02:00
- name: Update service
2023-08-30 23:21:24 +02:00
command: docker-compose pull
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
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
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
...