Browse Source

some fixes

master
parent
commit
77001918ed
3 changed files with 6 additions and 2 deletions
  1. +0
    -1
      tasks/access.yml
  2. +5
    -0
      tasks/main.yml
  3. +1
    -1
      vars/main.yml

+ 0
- 1
tasks/access.yml View File

@@ -59,4 +59,3 @@
state: file state: file
owner: www-data owner: www-data
group: www-data group: www-data
state: touch

+ 5
- 0
tasks/main.yml View File

@@ -25,6 +25,11 @@
when: nextcloud_database_type == "mysql" when: nextcloud_database_type == "mysql"


- import_tasks: core.yml - 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: access.yml


- import_tasks: install.yml - import_tasks: install.yml


+ 1
- 1
vars/main.yml View File

@@ -1,6 +1,6 @@
_nextcloud_config: "{{ _nextcloud_config_cmd.stdout | from_json }}" _nextcloud_config: "{{ _nextcloud_config_cmd.stdout | from_json }}"
_nextcloud_latest_version: "{{ lookup('template','nextcloud-latest.json.j2') |from_json }}" _nextcloud_latest_version: "{{ lookup('template','nextcloud-latest.json.j2') |from_json }}"
_nextcloud_actual_version: "{{ _nextcloud_get_actual_version_command.stdout }}"
_nextcloud_actual_version: "{{ _nextcloud_get_actual_version_command.stdout | default(0) }}"
_nextcloud_apps: "{{ lookup('template','nextcloud-apps.json.j2') }}" _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_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_disabled: "{{ _nextcloud_occ_app_list.stdout | from_yaml | json_query('Disabled|[]') }}"


Loading…
Cancel
Save