minor fixes

This commit is contained in:
2023-12-19 13:13:33 +01:00
parent 9866c8e6a9
commit 362ec8c85f
3 changed files with 7 additions and 6 deletions

View File

@@ -15,7 +15,7 @@
- name: "{{ nextcloud_path }}: Main Update block" - name: "{{ nextcloud_path }}: Main Update block"
when: "nextcloud_update_needed" when: "nextcloud_update_needed"
block: block:
- name: "Run Update" - name: "{{ nextcloud_path }}: Entering Updater"
include_tasks: "update.yml" include_tasks: "update.yml"
when: nextcloud_update_needed when: nextcloud_update_needed

View File

@@ -1,5 +1,5 @@
--- ---
- name: "Run OCC Command: {{ occ_command }}" - name: "{{ nextcloud_path }}: Run OCC Command: {{ occ_command }}"
become: true become: true
become_user: "{{ nextcloud_user }}" become_user: "{{ nextcloud_user }}"
shell: shell:

View File

@@ -1,21 +1,22 @@
--- ---
- name: "Run Updater" - name: "{{ nextcloud_path }}: Run Updater.phar"
become: true become: true
become_user: "{{ nextcloud_user }}" become_user: "{{ nextcloud_user }}"
shell: shell:
chdir: "{{ nextcloud_path }}/updater"
cmd: "alias \"php={{ php_binary }} {{ php_arguments }}\"; php {{ nextcloud_path }}/updater/updater.phar --no-interaction" cmd: "alias \"php={{ php_binary }} {{ php_arguments }}\"; php {{ nextcloud_path }}/updater/updater.phar --no-interaction"
- name: "Disable Maintenance-Mode" - name: "{{ nextcloud_path }}: Disable Maintenance-Mode"
include_tasks: "occ_command.yml" include_tasks: "occ_command.yml"
vars: vars:
occ_command: "maintenance:mode --off" occ_command: "maintenance:mode --off"
- name: "Run Updater Part 2" - name: "{{ nextcloud_path }}: Run Updater Part 2"
include_tasks: "occ_command.yml" include_tasks: "occ_command.yml"
vars: vars:
occ_command: "upgrade --no-interaction" occ_command: "upgrade --no-interaction"
- name: "Disable Maintenance-Mode" - name: "{{ nextcloud_path }}: Disable Maintenance-Mode"
include_tasks: "occ_command.yml" include_tasks: "occ_command.yml"
vars: vars:
occ_command: "maintenance:mode --off" occ_command: "maintenance:mode --off"