This commit is contained in:
martin.fencl
2026-08-17 15:44:05 +02:00
parent 7cca8da60b
commit e0472265e7
2 changed files with 89 additions and 3 deletions
+15 -3
View File
@@ -15,6 +15,8 @@
vm_use_sudo: "{{ use_sudo | default(false) | bool }}"
debug_level: "{{ DEBUG | default(0) | int }}"
retry_count: "{{ RETRIES | default(25) | int }}"
nextcloud_version: >-
{{ NEXTCLOUD_VERSION | default('') | string | trim }}
# Docker Compose configuration.
nextcloud_project: "nextcloud-collabora"
@@ -22,7 +24,7 @@
# Compose file stored in Git.
nextcloud_compose_local_file: >-
{{ playbook_dir }}/../docker-compose/docker-compose-nextcloud.yml
{{ playbook_dir }}/../docker-compose/docker-compose-nextcloud.yml.j2
# Compose file location on the Nextcloud VM.
nextcloud_compose_file: >-
@@ -763,6 +765,16 @@
echo "Post-upgrade checks completed successfully"
pre_tasks:
- name: Validate requested Nextcloud version
ansible.builtin.assert:
that:
- nextcloud_version | length > 0
- 'nextcloud_version is match("^[0-9]+[.][0-9]+[.][0-9]+$")'
fail_msg: >-
NEXTCLOUD_VERSION is required and must have format X.Y.Z,
for example 34.0.3.
quiet: true
- name: Validate VM connection variables
ansible.builtin.assert:
that:
@@ -822,8 +834,8 @@
- name: Nextcloud | Synchronize Compose file to VM
block:
- name: Nextcloud | Stage Compose file on Proxmox host
ansible.builtin.copy:
- name: Nextcloud | Render Compose file on Proxmox host
ansible.builtin.template:
src: "{{ nextcloud_compose_local_file }}"
dest: "{{ nextcloud_compose_controller_staging_file }}"
mode: "0600"