Files
PVHFrontend/ansible/restart_release_compose.yml
T
Black_Raven fe97818968
Build, Test and Push Flask App / docker-build-and-push (push) Successful in 1m4s
Build, Test and Push Flask App / deploy (push) Successful in 56s
Build, Test and Push Flask App / deploy-release (push) Successful in 1m18s
ci: Add release start
2026-10-02 15:48:54 +03:00

16 lines
535 B
YAML

- name: Restart Docker Compose services
hosts: all
# become: yes # <-- больше не нужно, т.к. пользователь уже имеет права Docker
tasks:
- name: docker compose down
ansible.builtin.shell:
cmd: docker compose down pvh-frontend
chdir: ~/web
- name: prune system
ansible.builtin.shell:
cmd: docker system prune -a -f
- name: docker compose up -d
ansible.builtin.shell:
cmd: docker compose up -d pvh-frontend
chdir: ~/web