From e2e8d84c13bfb47836fc84278a87cf8c5a65f367 Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Sat, 26 Oct 2024 19:01:08 +0200 Subject: [PATCH] chore(nginx_fpm_proxy): provide defaults for not defined variables --- roles/nginx_fpm_proxy/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/nginx_fpm_proxy/tasks/main.yml b/roles/nginx_fpm_proxy/tasks/main.yml index 4b728b0..3e6893c 100644 --- a/roles/nginx_fpm_proxy/tasks/main.yml +++ b/roles/nginx_fpm_proxy/tasks/main.yml @@ -29,9 +29,9 @@ env: "{{ nextcloud_nginx_container_env }}" name: "{{ nextcloud_nginx_container_name }}" image: "{{ nextcloud_nginx_container_image_ref }}" - ports: "{{ nextcloud_nginx_container_ports }}" + ports: "{{ nextcloud_nginx_container_ports | default(omit, true) }}" volumes: "{{ nextcloud_nginx_container_volumes }}" - labels: "{{ nextcloud_nginx_container_labels }}" - networks: "{{ nextcloud_nginx_container_networks | default(omit) }}" + labels: "{{ nextcloud_nginx_container_labels | default(omit, true) }}" + networks: "{{ nextcloud_nginx_container_networks | default(omit, true) }}" restart_policy: "{{ nextcloud_nginx_container_restart_policy }}" state: started