Adding molecule unit tests
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ nextcloud_data_dir }}"
|
||||
state: present
|
||||
when: not (molecule_test_mode | default(false))
|
||||
|
||||
- name: Wait for Nextcloud to be ready
|
||||
ansible.builtin.command:
|
||||
@@ -28,6 +29,7 @@
|
||||
retries: 30
|
||||
delay: 10
|
||||
changed_when: false
|
||||
when: not (molecule_test_mode | default(false))
|
||||
|
||||
- name: Copy tenant logo into Nextcloud container volume
|
||||
ansible.builtin.copy:
|
||||
@@ -43,9 +45,10 @@
|
||||
- { key: name, value: "{{ tenant_name }}" }
|
||||
- { key: color, value: "{{ tenant_primary_color | default('#2563eb') }}" }
|
||||
changed_when: false
|
||||
when: not (molecule_test_mode | default(false))
|
||||
|
||||
- name: Configure Nextcloud theming — logo
|
||||
ansible.builtin.command:
|
||||
cmd: docker exec -u www-data nextcloud php occ theming:config logo /var/www/html/sovereign-logo.png
|
||||
when: tenant_logo_local_path | default('') != ''
|
||||
when: tenant_logo_local_path | default('') != '' and not (molecule_test_mode | default(false))
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user