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.1KB

7 年之前
7 年之前
12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. - block:
  3. - name: nextcloud list config
  4. command: php occ config:list
  5. args:
  6. chdir: /var/www/nextcloud
  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: /var/www/nextcloud
  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: /var/www/nextcloud
  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: /var/www/nextcloud
  24. - name: nextcloud occ background:cron
  25. command: php occ background:cron
  26. args:
  27. chdir: /var/www/nextcloud
  28. become: true
  29. become_user: www-data
  30. become_method: sudo