correction de la conf certbot
[lhc/ansible.git] / test.yml
index 29a4802..3d0d04f 100644 (file)
--- a/test.yml
+++ b/test.yml
@@ -1,13 +1,16 @@
 - hosts: ligatures
   vars: 
-    domain: chatperche
-    ancienne_version: 27.1.0
-    nouvelle_version: 27.1.4
-
+    # domain: chatperche
+    # ancienne_version: 27.1.0
+    # nouvelle_version: 27.1.4
+    TLD: 'org'
+    DOMAIN: 'heureux-cyclage'
+    SITE: 'gestion'
+  become: true 
   tasks:
 
     # - name: Synchronisation des fichiers nextcloud présent sur ateliers dans la vm de migration nextcloud
-    #   ansible.builtin.command: "rsync --delay-updates -F --compress --archive --partial rominique@ateliers.heureux-cyclage.org:{{ item }} /opt/nuage/backups/{{ domain }}/"
+    #   ansible.builtin.command: "rsync --delay-updates -F --compress --archive --partial rominique@ateliers.heureux-cyclage.org:{{ item }} /opt/nuage/backups/{{ DOMAIN }}/"
     #   delegate_to: vm_debian11
     #   loop:
     #     - "{{ nextcloud_webroot }}/config/config.php"
     #   ansible.builtin.debug:
     #     var: my_output
 
-    - name: Download nextcloud source
-      become: true
-      become_user: nextcloud
-      ansible.builtin.get_url:
-        url: "{{ nextcloud_repo_url }}/nextcloud-{{ nouvelle_version }}.tar.bz2"
-        dest: "{{ nextcloud_sources_files_path }}/"
-        mode: '755' # or u=rwx,g=rx,o=rx
-        checksum: "md5:{{ nextcloud_repo_url }}/nextcloud-{{ nouvelle_version }}.tar.bz2.md5"
+    - name: Inclure le configuration du backup
+      ansible.builtin.include_tasks: tasks/config_backup.yml
\ No newline at end of file