Add nextcloud_config_parameter_mail_* variables
This commit is contained in:
parent
3393b651ea
commit
eaa789ad22
2 changed files with 107 additions and 22 deletions
|
@ -321,19 +321,113 @@ nextcloud_config_parameters: "{{ nextcloud_config_default_parameters + nextcloud
|
||||||
# Default configuration parameters to apply to Nextcloud.
|
# Default configuration parameters to apply to Nextcloud.
|
||||||
# To add your own additional parameters, use `nextcloud_config_additional_parameters`.
|
# To add your own additional parameters, use `nextcloud_config_additional_parameters`.
|
||||||
# To get rid of these defaults, redefine `nextcloud_config_default_parameters` or `nextcloud_config_parameters`.
|
# To get rid of these defaults, redefine `nextcloud_config_default_parameters` or `nextcloud_config_parameters`.
|
||||||
nextcloud_config_default_parameters:
|
nextcloud_config_default_parameters: |
|
||||||
- key: overwriteprotocol
|
{{
|
||||||
value: "https"
|
([
|
||||||
type: string
|
{
|
||||||
- key: overwrite.cli.url
|
'key': 'overwriteprotocol',
|
||||||
value: "{{ nextcloud_url }}"
|
'value': 'https',
|
||||||
type: string
|
'type': 'string',
|
||||||
- key: overwritewebroot
|
},
|
||||||
value: "{{ '' if nextcloud_path_prefix == '/' else nextcloud_path_prefix }}"
|
{
|
||||||
type: string
|
'key': 'overwrite.cli.url',
|
||||||
- key: htaccess.RewriteBase
|
'value': nextcloud_url,
|
||||||
value: "{{ nextcloud_path_prefix }}"
|
'type': 'string',
|
||||||
type: string
|
},
|
||||||
|
{
|
||||||
|
'key': 'overwritewebroot',
|
||||||
|
'value': ('' if nextcloud_path_prefix == '/' else nextcloud_path_prefix),
|
||||||
|
'type': 'string',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'key': 'htaccess.RewriteBase',
|
||||||
|
'value': nextcloud_path_prefix,
|
||||||
|
'type': 'string',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'key': 'auth.bruteforce.protection.enabled',
|
||||||
|
'value': false,
|
||||||
|
'type': 'boolean',
|
||||||
|
},
|
||||||
|
])
|
||||||
|
+
|
||||||
|
([
|
||||||
|
{
|
||||||
|
'key': 'mail_smtphost',
|
||||||
|
'value': nextcloud_config_parameter_mail_smtphost,
|
||||||
|
'type': 'string',
|
||||||
|
},
|
||||||
|
] if nextcloud_config_parameter_mail_smtphost != '' else [])
|
||||||
|
+
|
||||||
|
([
|
||||||
|
{
|
||||||
|
'key': 'mail_smtpport',
|
||||||
|
'value': nextcloud_config_parameter_mail_smtpport | int,
|
||||||
|
'type': 'int',
|
||||||
|
},
|
||||||
|
] if nextcloud_config_parameter_mail_smtpport != '' else [])
|
||||||
|
+
|
||||||
|
([
|
||||||
|
{
|
||||||
|
'key': 'mail_smtpsecure',
|
||||||
|
'value': nextcloud_config_parameter_mail_smtpsecure,
|
||||||
|
'type': 'string',
|
||||||
|
},
|
||||||
|
] if nextcloud_config_parameter_mail_smtpsecure != '' else [])
|
||||||
|
+
|
||||||
|
([
|
||||||
|
{
|
||||||
|
'key': 'mail_smtpauth',
|
||||||
|
'value': nextcloud_config_parameter_mail_smtpauth,
|
||||||
|
'type': 'boolean',
|
||||||
|
},
|
||||||
|
] if nextcloud_config_parameter_mail_smtpauth else [])
|
||||||
|
+
|
||||||
|
([
|
||||||
|
{
|
||||||
|
'key': 'mail_smtpname',
|
||||||
|
'value': nextcloud_config_parameter_mail_smtpname,
|
||||||
|
'type': 'string',
|
||||||
|
},
|
||||||
|
] if nextcloud_config_parameter_mail_smtpname else [])
|
||||||
|
+
|
||||||
|
([
|
||||||
|
{
|
||||||
|
'key': 'mail_smtppassword',
|
||||||
|
'value': nextcloud_config_parameter_mail_smtppassword,
|
||||||
|
'type': 'string',
|
||||||
|
},
|
||||||
|
] if nextcloud_config_parameter_mail_smtppassword else [])
|
||||||
|
+
|
||||||
|
([
|
||||||
|
{
|
||||||
|
'key': 'mail_from_address',
|
||||||
|
'value': nextcloud_config_parameter_mail_from_address,
|
||||||
|
'type': 'string',
|
||||||
|
},
|
||||||
|
] if nextcloud_config_parameter_mail_from_address != '' else [])
|
||||||
|
+
|
||||||
|
([
|
||||||
|
{
|
||||||
|
'key': 'mail_domain',
|
||||||
|
'value': nextcloud_config_parameter_mail_domain,
|
||||||
|
'type': 'string',
|
||||||
|
},
|
||||||
|
] if nextcloud_config_parameter_mail_domain != '' else [])
|
||||||
|
}}
|
||||||
|
|
||||||
|
nextcloud_config_parameter_mail_smtphost: ''
|
||||||
|
nextcloud_config_parameter_mail_smtpport: ''
|
||||||
|
nextcloud_config_parameter_mail_smtpsecure: ''
|
||||||
|
|
||||||
|
nextcloud_config_parameter_mail_smtpauth: false
|
||||||
|
nextcloud_config_parameter_mail_smtpname: ''
|
||||||
|
nextcloud_config_parameter_mail_smtppassword: ''
|
||||||
|
|
||||||
|
# nextcloud_config_parameter_mail_from_address and nextcloud_config_parameter_mail_domain
|
||||||
|
# contain the @-separated email address of the sender (localpart@domain).
|
||||||
|
nextcloud_config_parameter_mail_from_address: '' # localpart
|
||||||
|
nextcloud_config_parameter_mail_domain: '' # domain
|
||||||
|
|
||||||
# Add your custom Nextcloud configuration parameters here.
|
# Add your custom Nextcloud configuration parameters here.
|
||||||
#
|
#
|
||||||
|
|
|
@ -14,15 +14,6 @@
|
||||||
cmd: |-
|
cmd: |-
|
||||||
docker exec --user={{ nextcloud_uid }}:{{ nextcloud_gid }} {{ nextcloud_identifier }}-server php /var/www/html/occ --no-warnings config:system:set trusted_proxies 0 --type=string --value={{ nextcloud_reverse_proxy_container_network_subnet_result.stdout }}
|
docker exec --user={{ nextcloud_uid }}:{{ nextcloud_gid }} {{ nextcloud_identifier }}-server php /var/www/html/occ --no-warnings config:system:set trusted_proxies 0 --type=string --value={{ nextcloud_reverse_proxy_container_network_subnet_result.stdout }}
|
||||||
|
|
||||||
- name: Adjust Nextcloud configuration (disable bruteforce protection)
|
|
||||||
ansible.builtin.command:
|
|
||||||
cmd: |-
|
|
||||||
docker exec --user={{ nextcloud_uid }}:{{ nextcloud_gid }} {{ nextcloud_identifier }}-server php /var/www/html/occ --no-warnings config:system:set {{ item.key }} --type="{{ item.type }}" --value={{ item.value }}
|
|
||||||
with_items:
|
|
||||||
- key: auth.bruteforce.protection.enabled
|
|
||||||
value: "false"
|
|
||||||
type: boolean
|
|
||||||
|
|
||||||
- name: Adjust Nextcloud configuration (custom parameters)
|
- name: Adjust Nextcloud configuration (custom parameters)
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: |-
|
cmd: |-
|
||||||
|
|
Loading…
Reference in a new issue