corrections diverses
[lhc/ansible.git] / creation_nouveau_site.yml
index f3240da..0d36702 100644 (file)
@@ -2,7 +2,7 @@
 # attention - Par défaut ce scipt se lancer vers ligatures
 
 - name: Promp pour définir les variables du nouveau ite
-  hosts: vm_debian11 # test avec un nom de vm
+  hosts: ligatures
   become: true # toutes les tâches seront pas défaut éxécuter en tant que root
 
   vars:
     - name: Inclure la configuration d'un site web basique
       ansible.builtin.include_tasks: tasks/config_www.yml
 
-    - name: Bloc permettant de générer les certificats SSL
-      when: besoin_https == 'oui'
-      block:
-        - name: Inclure la configuration nginx http
-          ansible.builtin.include_tasks: tasks/config_nginx.yml
-          vars:
-            template_site: 'http'
-
-        - name: Générer un certififat avec certbot # noqa : command-instead-of-module
-          become: true
-          ansible.builtin.command: 'certbot certonly -i nginx -d {{ SITE }}.{{ DOMAIN }}.{{ TLD }}'
-          register: certbot_log
-          changed_when: false
-
-        - name: Afficher les logs certbot
-          ansible.builtin.debug:
-            var: certbot_log
-          when: certbot_log is defined
-
-
-    - name: Inclure la configuration nginx
-      ansible.builtin.include_tasks: tasks/config_nginx.yml
-      vars:
-        template_site: "{{ SITE }}"
-
     - name: Inclure la configuration d'un pool PHP
       ansible.builtin.include_tasks: tasks/config_pool_php.yml
       when: config_php == 'oui' or SITE == 'paheko' or SITE == 'nuage'
     # vim /etc/borgmatic/config.yaml
 
     # - /home/sites/data/${TLD}/${DOMAIN}/${SITE}/config
-    # - /home/sites/data/${TLD}/${DOMAIN}/${SITE}/data
\ No newline at end of file
+    # - /home/sites/data/${TLD}/${DOMAIN}/${SITE}/data
+
+    # - name: Bloc permettant de générer les certificats SSL
+    #   when: besoin_https == 'oui'
+    #   block:
+    #     - name: Inclure la configuration nginx http
+    #       ansible.builtin.include_tasks: tasks/config_nginx.yml
+    #       vars:
+    #         template_site: 'http'
+
+    #     - name: Générer un certififat avec certbot # noqa : command-instead-of-module
+    #       become: true
+    #       ansible.builtin.command: 'certbot certonly -i nginx -d {{ SITE }}.{{ DOMAIN }}.{{ TLD }}'
+    #       register: certbot_log
+    #       changed_when: false
+
+    #     - name: Afficher les logs certbot
+    #       ansible.builtin.debug:
+    #         var: certbot_log
+    #       when: certbot_log is defined
+
+    # - name: Inclure la configuration nginx
+    #   ansible.builtin.include_tasks: tasks/config_nginx.yml
+    #   vars:
+    #     template_site: "{{ SITE }}"
\ No newline at end of file