選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

core.yml 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ---
  2. - name: nextcloud platforms
  3. uri:
  4. url: https://apps.nextcloud.com/api/v1/platforms.json
  5. register: _nextcloud_platforms
  6. - name: nextcloud version dir
  7. file:
  8. path: "{{nextcloud_archive_directory}}/{{ nextcloud_version }}"
  9. state: directory
  10. - name: nextcloud core archive checksum download
  11. get_url:
  12. url: https://download.nextcloud.com/server/releases/nextcloud-{{ nextcloud_version }}.tar.bz2.sha256
  13. dest: "{{nextcloud_archive_directory}}/{{ nextcloud_version }}/nextcloud-{{ nextcloud_version }}.tar.bz2.sha256"
  14. - name: nextcloud core archive checksum
  15. shell: cat "{{nextcloud_archive_directory}}/{{ nextcloud_version }}/nextcloud-{{ nextcloud_version }}.tar.bz2.sha256"
  16. register: _nextcloud_server_archive_checksum
  17. changed_when: false
  18. - name: nextcloud core archive download
  19. get_url:
  20. url: https://download.nextcloud.com/server/releases/nextcloud-{{ nextcloud_version }}.tar.bz2
  21. dest: "{{nextcloud_archive_directory}}/{{ nextcloud_version }}/nextcloud-{{ nextcloud_version }}.tar.bz2"
  22. checksum: sha256:{{ _nextcloud_server_archive_checksum.stdout_lines[0].split(' ')[0] }}
  23. - name: nextcloud core archive signature download
  24. get_url:
  25. url: https://download.nextcloud.com/server/releases/nextcloud-{{ nextcloud_version }}.tar.bz2.asc
  26. dest: "{{nextcloud_archive_directory}}/{{ nextcloud_version }}/nextcloud-{{ nextcloud_version }}.tar.bz2.asc"
  27. - name: nextcloud core archive signature check
  28. command: gpg --no-default-keyring --keyring "{{nextcloud_archive_directory}}/keyring.gpg"
  29. --verify "{{nextcloud_archive_directory}}/{{ nextcloud_version }}/nextcloud-{{ nextcloud_version }}.tar.bz2.asc"
  30. "{{nextcloud_archive_directory}}/{{ nextcloud_version }}/nextcloud-{{ nextcloud_version }}.tar.bz2"
  31. changed_when: false
  32. - name: nextcloud core archive extract
  33. unarchive:
  34. src: "{{nextcloud_archive_directory}}/{{ nextcloud_version }}/nextcloud-{{ nextcloud_version }}.tar.bz2"
  35. remote_src: yes
  36. dest: "{{nextcloud_archive_directory}}/{{ nextcloud_version }}"
  37. owner: root
  38. group: root
  39. - name: nextcloud core archive sync
  40. synchronize:
  41. src: "{{nextcloud_archive_directory}}/{{ nextcloud_version }}/nextcloud/"
  42. dest: "{{nextcloud_directory}}"
  43. archive: no
  44. recursive: yes
  45. delegate_to: '{{ inventory_hostname }}'
  46. - name: link to current nextcloud directory
  47. file:
  48. src: "{{nextcloud_directory}}"
  49. dest: /var/www/nextcloud
  50. state: link