Refactor docker recreate and rebuild flags

This commit is contained in:
Tobias Reisinger 2025-05-10 00:40:03 +02:00
parent 8f026330d7
commit 40802d9d4f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
24 changed files with 61 additions and 82 deletions

View file

@ -0,0 +1,7 @@
---
- name: Rebuild service {{ role_name }}
ansible.builtin.command:
cmd: docker compose build --pull
chdir: "{{ (services_path, role_name) | path_join }}"
changed_when: true
notify: Restart service {{ role_name }}