Default MySQL works on jessie

pull/6/head
Emilien Mantel 2015-07-12 12:47:44 +02:00
parent 0627d4424c
commit 7b2439e590
9 changed files with 11 additions and 8 deletions

2
.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
.vagrant*
*.swp

View File

@ -3,8 +3,8 @@
# -------------------------------------
# Setup
# -------------------------------------
mysql_origin: 'mariadb'
mysql_vendor: 'mariadb'
mysql_origin: 'default'
mysql_vendor: 'mysql'
mysql_root_password: 'change_me_NOW'
# -------------------------------------

View File

@ -1,4 +0,0 @@
---
- name: restart mysql
action: service name=mysql state=restarted enabled=yes

View File

@ -1,2 +1,4 @@
---
# handlers file for .
- name: restart mysql
action: service name=mysql state=restarted enabled=yes

View File

@ -2,7 +2,7 @@
- name: INCLUDE | Install MySQL from default repo
include: 'install_default_mysql.yml'
when: mysql_origin == 'default' mysql_vendor == 'mysql'
when: mysql_origin == 'default' and mysql_vendor == 'mysql'
- name: INCLUDE | Install MariaDB from Debian repo
include: 'install_default_mariadb.yml'

View File

@ -12,6 +12,9 @@
register: mysql_exists
changed_when: false
- name: INCLUDE | Install
include: install.yml
- name: TEMPLATE | Deploy daemon configuration
template: src=etc/mysql/conf.d/98-config.cnf.j2 dest=/etc/mysql/conf.d/98-config.cnf
notify: restart mysql