mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-03-14 11:42:09 +07:00
Default MySQL works on jessie
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.vagrant*
|
||||
*.swp
|
||||
@@ -3,8 +3,8 @@
|
||||
# -------------------------------------
|
||||
# Setup
|
||||
# -------------------------------------
|
||||
mysql_origin: 'mariadb'
|
||||
mysql_vendor: 'mariadb'
|
||||
mysql_origin: 'default'
|
||||
mysql_vendor: 'mysql'
|
||||
mysql_root_password: 'change_me_NOW'
|
||||
|
||||
# -------------------------------------
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
|
||||
- name: restart mysql
|
||||
action: service name=mysql state=restarted enabled=yes
|
||||
@@ -1,2 +1,4 @@
|
||||
---
|
||||
# handlers file for .
|
||||
|
||||
- name: restart mysql
|
||||
action: service name=mysql state=restarted enabled=yes
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user