From f05b2ae3135b143e59f9d28be04c9eb057b3e178 Mon Sep 17 00:00:00 2001 From: rominique Date: Thu, 29 Aug 2024 11:57:17 +0200 Subject: [PATCH] ajout certif domain.tld --- creation_nouveau_site.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/creation_nouveau_site.yml b/creation_nouveau_site.yml index 48caac2..dc0d713 100644 --- a/creation_nouveau_site.yml +++ b/creation_nouveau_site.yml @@ -85,6 +85,15 @@ register: certbot_log ignore_errors: true changed_when: false + when: config_ss_domain != 'www' + + - name: Générer un certififat avec certbot # noqa : command-instead-of-module + become: true + ansible.builtin.command: 'certbot certonly -n --nginx -d {{ DOMAIN }}.{{ TLD }} -d {{ config_ss_domain | default(SITE) }}.{{ DOMAIN }}.{{ TLD }}' + register: certbot_log + ignore_errors: true + changed_when: false + when: config_ss_domain == 'www' - name: Afficher les logs certbot ansible.builtin.debug: -- 2.20.1