feat(ansible): Ajoute la migration Doctrine et vide le cache après déploiement.

This commit is contained in:
Serreau Jovann
2025-10-01 13:57:10 +02:00
parent 429de7c9db
commit 807dfd7fd5

View File

@@ -180,7 +180,12 @@
name: caddy
state: reloaded
enabled: yes
- name: Exécuter doctrine:migration:migrate dans le répertoire de l application
ansible.builtin.command: php bin/console doctrine:migration:migrate
become: false
args:
chdir: "{{ path }}"
when: ansible_os_family == "Debian"
- name: Exécuter cache:clear dans le répertoire de l application
ansible.builtin.command: php bin/console cache:clear
become: false