From cbcbbfc6b0e11e5a610433bd3b1a7f0fe4d79041 Mon Sep 17 00:00:00 2001
From: John Zimmermann <me@johnnynator.dev>
Date: Thu, 3 Aug 2023 17:31:46 +0200
Subject: [PATCH] Install mariadb dependencies before using them

Closes #13
---
 roles/shibboleth_idp/tasks/10-config-database.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/roles/shibboleth_idp/tasks/10-config-database.yml b/roles/shibboleth_idp/tasks/10-config-database.yml
index 9ed2561..682c05f 100644
--- a/roles/shibboleth_idp/tasks/10-config-database.yml
+++ b/roles/shibboleth_idp/tasks/10-config-database.yml
@@ -1,3 +1,8 @@
+- name: install mariadb-dependecies
+  ansible.builtin.apt:
+    name: ['mariadb-client', 'libmariadb-java', 'python3-pymysql']
+    state: present
+
 - ansible.builtin.import_tasks: 10-01-install-database-server.yml
   tags: install-database-server
   when: idp_local_db
@@ -6,11 +11,6 @@
   tags: install-database-dependecies
   when: not idp_local_db
 
-- name: install mariadb-dependecies
-  ansible.builtin.apt:
-    name: ['mariadb-client', 'libmariadb-java', 'python3-pymysql']
-    state: present
-
 - name: create symlink for tomcat
   ansible.builtin.file:
     src: /usr/share/java/mariadb-java-client.jar
-- 
GitLab