diff --git a/defaults/main.yml b/defaults/main.yml index 83508d5..4118b9a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,8 +4,8 @@ apache_custom_conf_path: /etc/apache2/conf-available nextcloud_admin_user: systemausfall.org nextcloud_admin_pw: "{{ lookup('password', '/tmp/{{ item.name }}_admin_pwd length=42 chars=ascii_letters,digits') }}" nextcloud_db_password: "{{ lookup('password', '/tmp/{{ item.name }}_db_pwd length=42 chars=ascii_letters,digits') }}" -nextcloud_github_api_url: https://api.github.com/repos/nextcloud/server/releases/latest -nextcloud_dl_url: "https://download.nextcloud.com/server/releases/nextcloud-{{ latest_version.stdout }}.tar.bz2" +nextcloud_github_api_url: https://api.github.com/repos/nextcloud/server/releaseis/latest +nextcloud_dl_url: "https://download.nextcloud.com/server/releases/nextcloud-{{ nextcloud_latest_version.stdout }}.tar.bz2" nextcloud_root: /data/nextcloud nextcloud_install_path: "{{ nextcloud_root }}/{{ item.name }}" nextcloud_config_file: "{{ nextcloud_install_path }}/config/config.php" diff --git a/tasks/common.yml b/tasks/common.yml index 4927808..278e209 100644 --- a/tasks/common.yml +++ b/tasks/common.yml @@ -4,7 +4,7 @@ cmd: curl -sL "{{ nextcloud_github_api_url }}" | jq -r ".tag_name" | cut -d 'v' -f2 changed_when: false check_mode: false - register: latest_version + register: nextcloud_latest_version - name: "Common | Kopiere Update-Skript" ansible.builtin.template: