|
- _nextcloud_config: "{{ _nextcloud_config_cmd.stdout | from_json }}"
- _nextcloud_latest_version: "{{ lookup('template','nextcloud-latest.json.j2') |from_json }}"
- _nextcloud_actual_version: "{{ _nextcloud_get_actual_version_command.stdout | default(0) }}"
- _nextcloud_apps: "{{ lookup('template','nextcloud-apps.json.j2') }}"
- _nextcloud_apps_enabled: "{{ _nextcloud_occ_app_list.stdout | from_yaml | json_query('Enabled|[]|map(&keys(@), @)|[]') }}"
- _nextcloud_apps_disabled: "{{ _nextcloud_occ_app_list.stdout | from_yaml | json_query('Disabled|[]') }}"
- _nextcloud_apps_present: "{{ _nextcloud_apps_enabled | union(_nextcloud_apps_disabled) }}"
-
- _nextcloud_do_update: "{{ _nextcloud_version_file_stat.stat.isreg is defined and _nextcloud_actual_version != nextcloud_version }}"
- _nextcloud_valid_states:
- - reinstalled
- - installed
- - updated
-
- _nextcloud_database_type_cli:
- mysql: mysql
- postgresql: pgsql
-
- _nextcloud_database_localhost_cli:
- mysql: localhost
- postgresql: /var/run/postgresql
-
- nextcloud_php_config: "{{ nextcloud_php_config_map[nextcloud_webserver] }}"
- nextcloud_php_config_map:
- nginx: fpm
- apache2: apache2
-
- nextcloud_server_names:
- - "{{ inventory_hostname }}"
|