untested: updated ansible with networkmounts

This commit is contained in:
Kyattsukuro 2026-09-27 15:46:41 +02:00
parent e83feaddb8
commit 68e8d0de54
3 changed files with 20 additions and 19 deletions

View File

@ -7,7 +7,16 @@ nextcloud_defaults:
db_password: ""
secret: ""
secret_salt: ""
mail: {}
networkmount:
host: ""
host_path: ""
args: ""
mail:
host: ""
address: ""
password: ""
oidc:
issuer: ""
client_id: ""

View File

@ -19,23 +19,15 @@
dest: "{{ path }}/config/nextcloud/importconfig.json"
register: _importconfig
- block:
- name: recreate nextcloud so the configfile gets updated
community.docker.docker_compose_v2:
project_src: "{{ path }}"
project_name: "{{ role_name }}"
state: present
recreate: always
services: "nextcloud"
wait: true
- name: import config
community.docker.docker_container_exec:
container: "{{ nextcloud_container }}"
chdir: "/var/www/html/"
user: "www-data"
command: "php occ config:import /tmp/importconfig.json"
when: "_importconfig.changed or 'installed: false' in nextcloud_status_check.stdout"
- import_role:
name: storage_mount
vars:
storagebox_override:
host: "{{ nextcloud.networkmount.host }}"
host_path: "{{ nextcloud.networkmount.host_path }}"
args: "{{ nextcloud.networkmount.args }}"
dest_path: "{{ nextcloud.data_path }}"
when: nextcloud.networkmount.host | length > 1
- name: ensure containers are running
community.docker.docker_compose_v2:

View File

@ -72,7 +72,7 @@
"opcache.revalidate_freq": 60,
"default_phone_region": "DE",
"memories.gis_type": 1,
"mail_domain": "{{ mail.domain }}",
"mail_domain": "{{ mail.address.split('@')[-1] }}",
"mail_from_address": "noreply",
"mail_smtpmode": "smtp",
"mail_smtphost": "{{ mail.host }}",