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: "" db_password: ""
secret: "" secret: ""
secret_salt: "" secret_salt: ""
mail: {}
networkmount:
host: ""
host_path: ""
args: ""
mail:
host: ""
address: ""
password: ""
oidc: oidc:
issuer: "" issuer: ""
client_id: "" client_id: ""

View File

@ -19,23 +19,15 @@
dest: "{{ path }}/config/nextcloud/importconfig.json" dest: "{{ path }}/config/nextcloud/importconfig.json"
register: _importconfig register: _importconfig
- block: - import_role:
- name: recreate nextcloud so the configfile gets updated name: storage_mount
community.docker.docker_compose_v2: vars:
project_src: "{{ path }}" storagebox_override:
project_name: "{{ role_name }}" host: "{{ nextcloud.networkmount.host }}"
state: present host_path: "{{ nextcloud.networkmount.host_path }}"
recreate: always args: "{{ nextcloud.networkmount.args }}"
services: "nextcloud" dest_path: "{{ nextcloud.data_path }}"
wait: true when: nextcloud.networkmount.host | length > 1
- 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"
- name: ensure containers are running - name: ensure containers are running
community.docker.docker_compose_v2: community.docker.docker_compose_v2:

View File

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