maj creation_nuage
[lhc/ansible.git] / test.yml
1 - hosts: ligatures
2 vars:
3 domain: chatperche
4 ancienne_version: 27.1.0
5 nouvelle_version: 27.1.4
6
7 tasks:
8
9 # - name: Synchronisation des fichiers nextcloud présent sur ateliers dans la vm de migration nextcloud
10 # ansible.builtin.command: "rsync --delay-updates -F --compress --archive --partial rominique@ateliers.heureux-cyclage.org:{{ item }} /opt/nuage/backups/{{ domain }}/"
11 # delegate_to: vm_debian11
12 # loop:
13 # - "{{ nextcloud_webroot }}/config/config.php"
14 # register: my_output
15
16 # - name: Debug
17 # ansible.builtin.debug:
18 # var: my_output
19
20 - name: Download nextcloud source
21 become: true
22 become_user: nextcloud
23 ansible.builtin.get_url:
24 url: "{{ nextcloud_repo_url }}/nextcloud-{{ nouvelle_version }}.tar.bz2"
25 dest: "{{ nextcloud_sources_files_path }}/"
26 mode: '755' # or u=rwx,g=rx,o=rx
27 checksum: "md5:{{ nextcloud_repo_url }}/nextcloud-{{ nouvelle_version }}.tar.bz2.md5"