feat(BackupCommand): Améliore la sauvegarde avec gestion des erreurs et nettoyage.

🐛 fix(SyncCommand): Corrige la synchronisation DNS et gère les erreurs OVH.
⚙️ refactor(DemandeCommand): Refactorise la génération du fichier hosts.ini.
🧹 chore(CustomerCommand): Purge les clients supprimés et leurs dépendances.
 test(TestMailerCommand): Ajoute une commande pour tester l'envoi d'emails.
 feat(run.sh): Ajoute un script pour exécuter les commandes de demande.
 feat(EmailCommand): Supprime les emails Mailcow marqués comme supprimés.
 feat(AccountCommand): Crée un utilisateur admin si inexistant.
 feat(ExportComptable): Initialise la commande d'export comptable.
This commit is contained in:
Serreau Jovann
2025-09-27 16:38:57 +02:00
parent 3057080b52
commit f89d9ba30a
10 changed files with 226 additions and 157 deletions

View File

@@ -194,7 +194,13 @@
args:
chdir: "{{ path }}"
when: ansible_os_family == "Debian" # Added a when condition here, often missed
- name: "Execute created subcriber link"
cron:
name: "Mainframe - subcriber link"
minute: "0"
hour: "*"
job: "sh {{ path }}/script/demande/run.sh"
user: root
- name: "Cron Task purge customer delete"
cron:
name: "Mainframe - Purge customer"
@@ -202,6 +208,7 @@
hour: "21"
job: "php {{ path }}/bin/console mainframe:cron:customer"
user: root
- name: "Cron Task purge email delete"
cron:
name: "Mainframe - Purge customer"
@@ -209,6 +216,7 @@
hour: "21"
job: "php {{ path }}/bin/console mainframe:cron:email"
user: root
- name: "Cron Task sync"
ansible.builtin.cron:
name: "Mainframe - Sync"