Make nextcloud role generic

This commit is contained in:
Ivan R. 2024-11-02 19:25:05 +05:00
parent 7879676250
commit 28d8f5d640
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
5 changed files with 33 additions and 8 deletions

View file

@ -6,6 +6,9 @@
password_salt: "{{ nextcloud.password_salt }}"
secret: "{{ nextcloud.secret }}"
db_password: "{{ postgresql_users.nextcloud }}"
mail_domain: comfycamp.space
smtp_host: comfycamp.space
smtp_name: nextcloud@comfycamp.space
smtp_password: "{{ mail_users['nextcloud@comfycamp.space'] }}"
url: https://nc.comfycamp.space
trusted_domains: ["nc.comfycamp.space"]

View file

@ -2,6 +2,10 @@
argument_specs:
main:
options:
version:
type: str
overwrite_protocol:
type: str
instance_id:
type: str
required: true
@ -23,9 +27,28 @@ argument_specs:
elements: str
required: true
description: "example.com"
db_type:
type: str
db_name:
type: str
db_host:
type: str
db_port:
type: int
db_user:
type: str
db_password:
type: str
required: true
mail_from_address:
type: str
mail_domain:
type: str
smtp_host:
type: str
smtp_port:
type: int
smtp_name:
type: str
smtp_password:
type: str
required: true

View file

@ -24,7 +24,7 @@
become: true
community.docker.docker_container:
name: nextcloud-{{ item }}
image: nextcloud:{{ version }}-apache
image: nextcloud:30.0.1-apache
networks:
- name: nextcloud
- name: haproxy

View file

@ -4,7 +4,7 @@ $CONFIG = array (
'instanceid' => '{{ instance_id }}',
'passwordsalt' => '{{ password_salt }}',
'secret' => '{{ secret }}',
'version' => '{{ full_version }}',
'version' => '{{ version }}',
'dbtype' => '{{ db_type }}',
'overwrite.cli.url' => '{{ url }}',
'overwriteprotocol' => '{{ overwrite_protocol }}',

View file

@ -1,5 +1,4 @@
version: 30.0.1
full_version: 30.0.1.2
version: 30.0.1.2
overwrite_protocol: https
db_type: pgsql
@ -9,10 +8,10 @@ db_port: 5432
db_user: nextcloud
mail_from_address: nextcloud
mail_domain: comfycamp.space
smtp_host: comfycamp.space
mail_domain: ""
smtp_host: ""
smtp_port: 587
smtp_name: nextcloud@comfycamp.space
smtp_name: ""
redis_host: nextcloud-redis
redis_port: 6379