Skip to content

Commit

Permalink
DIYIDP: Only create docker mariadb network when the boolean mariadb_i…
Browse files Browse the repository at this point in the history
…n_docker has been set to true
  • Loading branch information
quartje committed Nov 26, 2024
1 parent fff42d1 commit 18a32b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/diyidp/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18a32b9

Please sign in to comment.