infrastructure/playbooks/tasks/rebuild-service.yml

7 lines
229 B
YAML

---
- 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 }}