@@ -1211,6 +1211,42 @@ 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.
Parameters
~~~~~~~~~~
**db_name** (string, mandatory)
Name of the database that should be created.
**db_password** (string, mandatory)
Password for the database user.
Examples
~~~~~~~~
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