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.

55 lines
1.1KB

  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. - import_tasks: access.yml
  20. - import_tasks: install.yml
  21. when:
  22. nextcloud_state == "installed" or
  23. nextcloud_state == "reinstalled"
  24. - import_tasks: upgrade.yml
  25. when:
  26. - nextcloud_state == 'updated'
  27. - _nextcloud_do_update
  28. - import_tasks: configure.yml
  29. - include_tasks: apps.yml
  30. when: nextcloud_version is version('13.0.0','ge')
  31. #- import_tasks: check.yaml
  32. - import_tasks: certificate.yml
  33. - import_tasks: apache2.yml
  34. - import_tasks: cron.yml
  35. - import_tasks: occ.yaml