@@ -1193,24 +1193,60 @@ The role implements the following:
* Installs MariaDB server and client.
* Configures MariaDB server and client to use *UTF-8* encoding by default.
* Sets password for the database root user.
* Deploys MariaDB client configuration in location ``/root/.my.cnf`` that
contains username and password for the root database user.
Parameters
~~~~~~~~~~
**db_root_password** (string, mandatory)
Password for the *root* database user.
Examples
~~~~~~~~
Here is an example configuration for setting-up the database server:
.. code-block:: yaml
---
db_root_password: root
Database
--------
The ``database`` role can be used for creating a MariaDB database and
accompanying user on destination machine.
The role implements the following:
* Creates MariaDB database.
* Creates a dedicated user capable of performing any operation on the created
database. Username is set to be same as the name of database.
**db_name** (string, mandatory)
Name of the database that should be created.
**db_password** (string, mandatory)
Password for the database user.
Here is an example configuration for creating a single database (for some
website):
- role: database
db_name: phpinfo_example_com
db_password: phpinfo_example_com