Add variable to specify the my.cnf template

pull/18/head
Jasper N. Brouwer 2017-06-28 21:57:47 +02:00
parent 266af48a9b
commit 5977497809
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,9 @@ mysql_upstream_apt_src: false
# Configuration
# -------------------------------------
# MySQL configuration template
mysql_config_template: 'etc/mysql/my.cnf.j2'
# MySQL connection settings.
mysql_port: "3306"
mysql_bind_address: '127.0.0.1'

View File

@ -12,7 +12,7 @@
include: install/main.yml
- name: TEMPLATE | Deploy configuration
template: src=etc/mysql/my.cnf.j2 dest=/etc/mysql/my.cnf
template: "src={{ mysql_config_template }} dest=/etc/mysql/my.cnf"
register: config
- name: TEMPLATE | Deploy extra configuration