From 269a0ba23adfe425692813eb9223c84344caeb24 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 29 Mar 2023 14:12:41 +0300 Subject: [PATCH] Make nextcloud_systemd_required_services_list and nextcloud_container_additional_networks more configurable --- defaults/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 2d2f010..73f71c6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -16,7 +16,10 @@ nextcloud_version: 26.0.0 nextcloud_uid: '' nextcloud_gid: '' -nextcloud_systemd_required_services_list: ['docker.service'] +nextcloud_systemd_required_services_list: "{{ nextcloud_systemd_required_services_list_default + nextcloud_systemd_required_services_list_auto + nextcloud_systemd_required_services_list_custom }}" +nextcloud_systemd_required_services_list_default: ['docker.service'] +nextcloud_systemd_required_services_list_auto: [] +nextcloud_systemd_required_services_list_custom: [] nextcloud_base_path: "{{ nextcloud_base_path }}/nextcloud" nextcloud_config_path: "{{ nextcloud_base_path }}/config" @@ -160,7 +163,9 @@ nextcloud_container_network: "{{ nextcloud_identifier }}" # A list of additional container networks that the container would be connected to. # The playbook does not create these networks, so make sure they already exist. -nextcloud_container_additional_networks: [] +nextcloud_container_additional_networks: "{{ nextcloud_container_additional_networks_auto + nextcloud_container_additional_networks_custom }}" +nextcloud_container_additional_networks_auto: [] +nextcloud_container_additional_networks_custom: [] nextcloud_database_type: postgres nextcloud_database_hostname: ''