test
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user