Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

50 řádky
1.6KB

  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
  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 config:system:set logtimezone
  26. command: php occ config:system:set logtimezone --value="{{timezone}}"
  27. args:
  28. chdir: "{{nextcloud_directory}}"
  29. when: _nextcloud_config.system.logtimezone != timezone
  30. - name: nextcloud occ maintenance:update:htaccess
  31. command: php occ maintenance:update:htaccess
  32. args:
  33. chdir: "{{nextcloud_directory}}"
  34. - name: nextcloud occ background:cron
  35. command: php occ background:cron
  36. args:
  37. chdir: "{{nextcloud_directory}}"
  38. become: true
  39. become_user: www-data
  40. become_method: sudo