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.

configure.yml 1.4KB

7 年之前
7 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. - block:
  3. - name: nextcloud list config
  4. command: php occ config:list
  5. args:
  6. chdir: "{{nextcloud_directory}}"
  7. register: _nextcloud_config_cmd
  8. changed_when: false
  9. - name: nextcloud occ config:system:delete trusted_domains
  10. command: php occ config:system:delete trusted_domains
  11. args:
  12. chdir: "{{nextcloud_directory}}"
  13. when: _nextcloud_config.system.trusted_domains != nextcloud_server_names
  14. - name: nextcloud occ config:system:set trusted_domains
  15. command: php occ config:system:set trusted_domains {{ item.0 }} --value={{ item.1 }}
  16. args:
  17. chdir: "{{nextcloud_directory}}"
  18. with_indexed_items: "{{ nextcloud_server_names }}"
  19. when: _nextcloud_config.system.trusted_domains != nextcloud_server_names
  20. - name: nextcloud occ config:system:set overwrite.cli.url (fix bug in nextcloud 14)
  21. command: php occ config:system:set overwrite.cli.url --value="https://{{nextcloud_server_names|first}}/"
  22. args:
  23. chdir: "{{nextcloud_directory}}"
  24. when: nextcloud_version is version('14.0.0','ge')
  25. - name: nextcloud occ maintenance:update:htaccess
  26. command: php occ maintenance:update:htaccess
  27. args:
  28. chdir: "{{nextcloud_directory}}"
  29. - name: nextcloud occ background:cron
  30. command: php occ background:cron
  31. args:
  32. chdir: "{{nextcloud_directory}}"
  33. become: true
  34. become_user: www-data
  35. become_method: sudo