Skip to content

Commit

Permalink
Rename variable and select item directly
Browse files Browse the repository at this point in the history
  • Loading branch information
simonspa committed Nov 3, 2019
1 parent 602f14b commit 083017f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks/core/apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 083017f

Please sign in to comment.