diff tasks/setting-mariadb.yml @ 0:10185cc821e4

add
author k178572
date Wed, 20 Sep 2017 18:12:15 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tasks/setting-mariadb.yml	Wed Sep 20 18:12:15 2017 +0900
@@ -0,0 +1,15 @@
+- name: データベース wordpress を作成
+  become: yes
+  mysql_db:
+    name: wordpress
+    state: present
+    encoding: utf8
+
+- name: MySQLユーザー wordpress を作成し,wordpress.* にすべての権限を与える
+  become: yes
+  mysql_user:
+    name: wordpress
+    password: "hZzTwWuTeN"
+    priv: "wordpress.*:ALL"
+    host: localhost
+    state: present