You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
944B

  1. ---
  2. - name: get nextcloud apps list
  3. uri:
  4. url: https://apps.nextcloud.com/api/v1/platform/{{ nextcloud_version }}/apps.json
  5. register: _nextcloud_apps_list
  6. - debug:
  7. msg:
  8. _nextcloud_apps: "{{ _nextcloud_apps }}"
  9. - name: nextcloud apps download
  10. get_url:
  11. url: "{{ _nextcloud_apps[item].url }}"
  12. dest: "{{nextcloud_archive_directory}}/nextcloud-{{item}}-{{ _nextcloud_apps[item].version }}.tar.gz"
  13. with_items: "{{ nextcloud_apps }}"
  14. - name: nextcloud apps extract
  15. unarchive:
  16. src: "{{nextcloud_archive_directory}}/nextcloud-{{item}}-{{ _nextcloud_apps[item].version }}.tar.gz"
  17. dest: /var/www/nextcloud/apps/
  18. remote_src: yes
  19. owner: root
  20. group: root
  21. with_items: "{{ nextcloud_apps }}"
  22. - name: nextcloud enable apps
  23. command: php occ app:enable {{item.name}}
  24. with_items: "{{ nextcloud_apps }}"
  25. args:
  26. chdir: /var/www/nextcloud
  27. become: true
  28. become_user: www-data
  29. become_method: sudo