summaryrefslogtreecommitdiffstats
path: root/plugins/odl_cluster/tasks/control-db-1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/odl_cluster/tasks/control-db-1.yml')
-rw-r--r--plugins/odl_cluster/tasks/control-db-1.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/odl_cluster/tasks/control-db-1.yml b/plugins/odl_cluster/tasks/control-db-1.yml
new file mode 100644
index 00000000..3cef9792
--- /dev/null
+++ b/plugins/odl_cluster/tasks/control-db-1.yml
@@ -0,0 +1,8 @@
+---
+
+- name: drop and recreate neutron database
+ shell: |
+ mysql -e "drop database if exists neutron;";
+ mysql -e "create database neutron character set utf8;";
+ mysql -e "grant all on neutron.* to 'neutron'@'%' identified by \
+ '{{ neutron_container_mysql_password }}';";