Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

configure.yml 1.1KB

7 år sedan
7 år sedan
12345678910111213141516171819202122232425262728293031323334353637
  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:app: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 maintenance:update:htaccess
  21. command: php occ maintenance:update:htaccess
  22. args:
  23. chdir: "{{nextcloud_directory}}"
  24. - name: nextcloud occ background:cron
  25. command: php occ background:cron
  26. args:
  27. chdir: "{{nextcloud_directory}}"
  28. become: true
  29. become_user: www-data
  30. become_method: sudo