ci: Added CD to repo CI

This commit is contained in:
Black_Raven committed 2026-05-25 22:52:12 +03:00
1 parent b8422f5472
commit 15ced43fe4
2 files changed
+37 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
- name: Restart Docker Compose services
hosts: all
# become: yes # <-- больше не нужно, т.к. пользователь уже имеет права Docker
tasks:
- name: docker compose down
ansible.builtin.shell:
cmd: docker compose down
chdir: /etc/compose/pvh
- 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
chdir: /etc/compose/pvh