From 18a32b90fbc20a75721b79f4f798fbbb9ad280e6 Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Tue, 26 Nov 2024 20:56:15 +0100 Subject: [PATCH] DIYIDP: Only create docker mariadb network when the boolean mariadb_in_docker has been set to true --- roles/diyidp/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/diyidp/tasks/main.yml b/roles/diyidp/tasks/main.yml index 4f16c2423..f4e90ff64 100644 --- a/roles/diyidp/tasks/main.yml +++ b/roles/diyidp/tasks/main.yml @@ -67,6 +67,13 @@ mode: "0644" notify: restart diyidp +- name: Add the mariadb docker network to the list of networks when MariaDB runs in Docker + ansible.builtin.set_fact: + diyidp_docker_networks: + - name: loadbalancer + - name: openconext_mariadb + when: mariadb_in_docker | default(false) | bool + - name: Create the container community.docker.docker_container: name: diyidp