Renamed databasename

This commit is contained in:
2024-01-06 14:32:49 +01:00
parent 68613545b2
commit 7d8b7dd00f
27 changed files with 39 additions and 39 deletions

View File

@@ -19,7 +19,7 @@ Before using this role, ensure you have the following:
## Configuration
Configure the role by setting the required variables. These can be set in the playbook or in a separate variable file:
- `central_mariadb_root_password`: The root password for the MariaDB server.
- `database_databasename`: The name of the initial database to create.
- `database_name`: The name of the initial database to create.
- `database_username`: The username for the database user.
- `database_password`: The password for the database user.

View File

@@ -46,9 +46,9 @@
timeout: 300
when: run_once_docker_mariadb is not defined
- name: "Create database: {{ database_databasename }}"
- name: "Create database: {{ database_name }}"
mysql_db:
name: "{{ database_databasename }}"
name: "{{ database_name }}"
state: present
login_user: root
login_password: "{{ central_mariadb_root_password }}"
@@ -60,7 +60,7 @@
name: "{{database_username}}"
password: "{{database_password}}"
host: "%"
priv: '{{database_databasename}}.*:ALL'
priv: '{{database_name}}.*:ALL'
state: present
login_user: root
login_password: "{{central_mariadb_root_password}}"