mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Renamed databasename
This commit is contained in:
@@ -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.
|
||||
|
||||
|
@@ -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}}"
|
||||
|
Reference in New Issue
Block a user