lowercase database_type
This commit is contained in:
parent
3f9e81569d
commit
758a45bf18
3 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ php_cli_config:
|
||||||
| `alias`| string | Array mit weiteren Domain-Alias-Namen für diese Instanz |
|
| `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 |
|
| `user` | string | Name eines anzulegenden Systemnutzers, der den PHP-FPM-Prozess ausführt |
|
||||||
| `database` | string | Name der anzulegenden Datenbank |
|
| `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 |
|
| `hiddenservice` | bol | Richtet für die Instanz einen Onion Service ein |
|
||||||
- Lege in den `host_vars` den Webserver-Typ fest:
|
- Lege in den `host_vars` den Webserver-Typ fest:
|
||||||
| Variable | Wert | Beschreibung |
|
| Variable | Wert | Beschreibung |
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: "Richte MariaDB-Datenbank ein"
|
- name: "Richte MariaDB-Datenbank ein"
|
||||||
when: item.database_type == "MariaDB"
|
when: item.database_type == "mariadb"
|
||||||
block:
|
block:
|
||||||
- name: "Database | Erstelle Datenbank | {{ item.name }}"
|
- name: "Database | Erstelle Datenbank | {{ item.name }}"
|
||||||
community.mysql.mysql_db:
|
community.mysql.mysql_db:
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ item.user }}"
|
become_user: "{{ item.user }}"
|
||||||
changed_when: true
|
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 }}"
|
- name: "Nextcloud | Führe Installation aus | {{ item.name }}"
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
@ -58,4 +58,4 @@
|
||||||
chdir: "{{ nextcloud_install_path }}"
|
chdir: "{{ nextcloud_install_path }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ item.user }}"
|
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"
|
||||||
|
|
Loading…
Reference in a new issue