Use ansible to create database
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
d349a7940d
commit
99685139ca
1 changed files with 8 additions and 0 deletions
|
@ -54,3 +54,11 @@
|
|||
roles:
|
||||
- nagios_client
|
||||
- mariadb_server
|
||||
|
||||
posttasks:
|
||||
- name: create databaseuser
|
||||
mysql_user: name=magazine
|
||||
host=localhost
|
||||
state=present
|
||||
password="{{ magazine_db_password }}"
|
||||
priv="magazine.*:ALL"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue