您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526
  1. ---
  2. - name: nextcloud apps download
  3. get_url:
  4. url: "{{ item.url }}"
  5. dest: /var/www/nextcloud-app-{{item.name}}-{{ item.version }}.tar.gz
  6. sha256sum: "{{ item.sha256sum }}"
  7. with_items: "{{ nextcloud_apps }}"
  8. - name: nextcloud apps extract
  9. unarchive:
  10. src: /var/www/nextcloud-app-{{item.name}}-{{ item.version }}.tar.gz
  11. dest: /var/www/nextcloud/apps/
  12. remote_src: yes
  13. owner: root
  14. group: root
  15. with_items: "{{ nextcloud_apps }}"
  16. - name: nextcloud enable apps
  17. command: php occ app:enable {{item.name}}
  18. with_items: "{{ nextcloud_apps }}"
  19. args:
  20. chdir: /var/www/nextcloud
  21. become: true
  22. become_user: www-data
  23. become_method: sudo