From 999e6af325e4fdd985d2b4c6b32c8cd9bb623ea4 Mon Sep 17 00:00:00 2001 From: BILAL EL HASNAOUI <bilal.elhasnaoui@polytech-lille.net> Date: Sat, 18 May 2024 17:48:45 +0200 Subject: [PATCH] Feat: Add CI pipeline to deploy the synapse application --- roles/nginx/tasks/main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index 83ab03c..a25c4da 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -16,4 +16,15 @@ - name: Restart nginx server. service: name: nginx - tate: restarted \ No newline at end of file + tate: restarted +- name: Creates a crobjob to reload nginx every night in case the certificates are updated + ansible.builtin.cron: + name: reload nginx + minute: "0" + # 4am since the certbot cronjob + # runs at 3:30 am + hour: "4" + day: "*" + month: "*" + weekday: "*" + job: systemctl reload nginx \ No newline at end of file -- GitLab