✅: add nextcloud version test
This commit is contained in:
10
roles/nextcloud/tasks/check.yml
Normal file
10
roles/nextcloud/tasks/check.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
- name: Get nextcloud version
|
||||
ansible.builtin.uri:
|
||||
url: "https://{{ nextcloud_access_url }}/status.php"
|
||||
register: nextcloud_installed_version
|
||||
|
||||
- name: Compare nextcloud version
|
||||
ansible.builtin.assert:
|
||||
that: nextcloud_installed_version.json.versionstring == nextcloud_version
|
@@ -5,3 +5,6 @@
|
||||
|
||||
- name: Install nextcloud
|
||||
ansible.builtin.include_tasks: nextcloud.yml
|
||||
|
||||
- name: Check nextcloud version
|
||||
ansible.builtin.include_tasks: check.yml
|
||||
|
Reference in New Issue
Block a user