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.

59 line
1.3KB

  1. ---
  2. - name: assert valid role state
  3. assert:
  4. that: nextcloud_state in _nextcloud_valid_states
  5. msg: "'_nextcloud_valid_states' must be one of: {{_nextcloud_valid_states | join(', ') }}"
  6. - include_tasks: setup_{{ansible_os_family}}.yml
  7. - import_tasks: detect-update.yaml
  8. - import_tasks: backup.yaml
  9. when:
  10. - nextcloud_state == 'updated'
  11. - _nextcloud_do_update
  12. - import_tasks: gpg.yaml
  13. - import_tasks: php-opcache.yml
  14. - import_tasks: reset.yml
  15. when: nextcloud_state == "reinstalled"
  16. - import_tasks: mysql.yml
  17. when: nextcloud_database_type == "mysql"
  18. - import_tasks: core.yml
  19. when:
  20. nextcloud_state == "reinstalled" or
  21. (nextcloud_state == "installed" and not _nextcloud_version_file_stat.stat.isreg is defined) or
  22. (nextcloud_state == "updated" and _nextcloud_do_update)
  23. - import_tasks: access.yml
  24. - import_tasks: install.yml
  25. when:
  26. nextcloud_state == "installed" or
  27. nextcloud_state == "reinstalled"
  28. - import_tasks: upgrade.yml
  29. when:
  30. - nextcloud_state == 'updated'
  31. - _nextcloud_do_update
  32. - import_tasks: configure.yml
  33. - include_tasks: apps.yml
  34. when: nextcloud_version is version('13.0.0','ge')
  35. #- import_tasks: check.yaml
  36. - import_tasks: certificate.yml
  37. - import_tasks: apache2.yml
  38. - import_tasks: cron.yml
  39. - import_tasks: occ.yaml