|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- ---
-
- - 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: php-opcache.yml
-
- - import_tasks: reset.yml
- when: nextcloud_state == "reinstalled"
-
- - import_tasks: mysql.yml
- when: nextcloud_database_type == "mysql"
-
- - 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
-
- - include_tasks: apps.yml
- when: nextcloud_version is version('13.0.0','ge')
-
- #- import_tasks: check.yaml
-
- - import_tasks: certificate.yml
-
- - import_tasks: apache2.yml
-
- - import_tasks: cron.yml
-
- - import_tasks: occ.yaml
|