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.

60 lines
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: reset.yml
  14. when: nextcloud_state == "reinstalled"
  15. - import_tasks: mysql.yml
  16. when: nextcloud_database_type == "mysql"
  17. - import_tasks: postgresql.yaml
  18. when: nextcloud_database_type == "postgresql"
  19. - import_tasks: core.yml
  20. when:
  21. nextcloud_state == "reinstalled" or
  22. (nextcloud_state == "installed" and not _nextcloud_version_file_stat.stat.isreg is defined) or
  23. (nextcloud_state == "updated" and _nextcloud_do_update)
  24. - import_tasks: access.yml
  25. - import_tasks: install.yml
  26. when:
  27. nextcloud_state == "installed" or
  28. nextcloud_state == "reinstalled"
  29. - import_tasks: upgrade.yml
  30. when:
  31. - nextcloud_state == 'updated'
  32. - _nextcloud_do_update
  33. - import_tasks: configure.yml
  34. - include_tasks: apps.yml
  35. when: nextcloud_version is version('13.0.0','ge')
  36. #- import_tasks: check.yaml
  37. - import_tasks: certificate.yml
  38. - import_tasks: apache2.yml
  39. - import_tasks: cron.yml
  40. - import_tasks: occ.yaml