|
- ---
-
- - name: assert valid role state
- assert:
- that: nextcloud_state in _nextcloud_valid_states
- msg: "'_nextcloud_valid_states' must be one of: {{_nextcloud_valid_states | join(', ') }}"
-
- - include_tasks: setup_{{ansible_os_family}}.yml
-
- - import_tasks: detect-update.yaml
-
- - import_tasks: backup.yaml
- when:
- - nextcloud_state == 'updated'
- - _nextcloud_do_update
-
- - import_tasks: gpg.yaml
-
- - import_tasks: reset.yml
- when: nextcloud_state == "reinstalled"
-
- - import_tasks: mysql.yml
- when: nextcloud_database_type == "mysql"
-
- - import_tasks: postgresql.yaml
- when: nextcloud_database_type == "postgresql"
-
- - import_tasks: core.yml
- when:
- nextcloud_state == "reinstalled" or
- (nextcloud_state == "installed" and not _nextcloud_version_file_stat.stat.isreg is defined) or
- (nextcloud_state == "updated" and _nextcloud_do_update)
-
- - import_tasks: access.yml
-
- - import_tasks: install.yml
- when:
- nextcloud_state == "installed" or
- nextcloud_state == "reinstalled"
-
- - import_tasks: upgrade.yml
- when:
- - nextcloud_state == 'updated'
- - _nextcloud_do_update
-
- - import_tasks: configure.yml
-
- - import_tasks: apps.yml
- when: nextcloud_version is version('13.0.0','ge')
-
- #- import_tasks: check.yaml
-
- - import_tasks: certificate.yml
-
- - import_tasks: nginx.yml
- when: nextcloud_webserver == 'nginx'
- - import_tasks: apache2.yml
- when: nextcloud_webserver == 'apache2'
- - import_tasks: php.yaml
-
- - import_tasks: cron.yml
-
- - import_tasks: occ.yaml
|