From 083017f155842b0446a36babb5a7b878af74db51 Mon Sep 17 00:00:00 2001 From: Simon Spannagel Date: Sun, 3 Nov 2019 16:49:14 +0100 Subject: [PATCH] Rename variable and select item directly --- tasks/core/apps.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/core/apps.yml b/tasks/core/apps.yml index 9494c30..5e35683 100644 --- a/tasks/core/apps.yml +++ b/tasks/core/apps.yml @@ -46,17 +46,19 @@ chdir: "{{ nextcloud_installation_dir }}" become: true become_user: "{{ nextcloud_file_owner }}" - register: _output + register: _result changed_when: false - name: Remove non-json text from command output set_fact: - nextcloud_full_version: "{{ _output.stdout | from_json }}" + nextcloud_full_version: "{{ (_result.stdout | from_json)['versionstring'] }}" - name: Create app json file url set_fact: nextcloud_app_store_json_url: >- - https://apps.nextcloud.com/api/v1/platform/{{ nextcloud_full_version.versionstring }}/apps.json + https://apps.nextcloud.com/api/v1/platform/{{ + nextcloud_full_version + }}/apps.json changed_when: false - name: Download the app json file