From 758a45bf185f069b839e9c68e3bf0c2d77eed9e6 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 23 Mar 2024 23:10:01 +0100 Subject: [PATCH] lowercase database_type --- README.md | 2 +- tasks/database.yml | 2 +- tasks/nextcloud.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 64911cf..846dc1d 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ php_cli_config: | `alias`| string | Array mit weiteren Domain-Alias-Namen für diese Instanz | | `user` | string | Name eines anzulegenden Systemnutzers, der den PHP-FPM-Prozess ausführt | | `database` | string | Name der anzulegenden Datenbank | - | `database_type` | string | `MariaDB` oder `PostgreSQL` | + | `database_type` | string | `mariadb` oder `postgresql` | | `hiddenservice` | bol | Richtet für die Instanz einen Onion Service ein | - Lege in den `host_vars` den Webserver-Typ fest: | Variable | Wert | Beschreibung | diff --git a/tasks/database.yml b/tasks/database.yml index e700cdf..309fc78 100644 --- a/tasks/database.yml +++ b/tasks/database.yml @@ -1,6 +1,6 @@ --- - name: "Richte MariaDB-Datenbank ein" - when: item.database_type == "MariaDB" + when: item.database_type == "mariadb" block: - name: "Database | Erstelle Datenbank | {{ item.name }}" community.mysql.mysql_db: diff --git a/tasks/nextcloud.yml b/tasks/nextcloud.yml index 70a75e1..c2f9e70 100644 --- a/tasks/nextcloud.yml +++ b/tasks/nextcloud.yml @@ -46,7 +46,7 @@ become: true become_user: "{{ item.user }}" changed_when: true - when: not nc_is_installed.stat.exists and item.database_type == "MariaDB" + when: not nc_is_installed.stat.exists and item.database_type == "mariadb" - name: "Nextcloud | Führe Installation aus | {{ item.name }}" ansible.builtin.command: @@ -58,4 +58,4 @@ chdir: "{{ nextcloud_install_path }}" become: true become_user: "{{ item.user }}" - when: not nc_is_installed.stat.exists and item.database_type == "PostgreSQL" + when: not nc_is_installed.stat.exists and item.database_type == "postgresql"