25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

50 satır
1.9KB

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