X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=test.yml;h=3d0d04f4c73a22b40dcc0b0766e481b853d8f50e;hb=5f7ed8e1233e5b2bb33ac343113d3fa5bfe77ec3;hp=29a4802489a217dba7188f58f8e5d9f1d8d85bf7;hpb=0e7e1f059f943f6617400cc32d155d73b4b4b9a3;p=lhc%2Fansible.git diff --git a/test.yml b/test.yml index 29a4802..3d0d04f 100644 --- 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" @@ -17,11 +20,5 @@ # 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