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.

37 lines
1.1KB

  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. - name: nextcloud occ config:app:delete trusted_domains
  9. command: php occ config:system:delete trusted_domains
  10. args:
  11. chdir: /var/www/nextcloud
  12. when: _nextcloud_config.system.trusted_domains != nextcloud_server_names
  13. - name: nextcloud occ config:system:set trusted_domains
  14. command: php occ config:system:set trusted_domains {{ item.0 }} --value={{ item.1 }}
  15. args:
  16. chdir: /var/www/nextcloud
  17. with_indexed_items: "{{ nextcloud_server_names }}"
  18. when: _nextcloud_config.system.trusted_domains != nextcloud_server_names
  19. - name: nextcloud occ maintenance:update:htaccess
  20. command: php occ maintenance:update:htaccess
  21. args:
  22. chdir: /var/www/nextcloud
  23. - name: nextcloud occ background:cron
  24. command: php occ background:cron
  25. args:
  26. chdir: /var/www/nextcloud
  27. become: true
  28. become_user: www-data
  29. become_method: sudo