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 # Configuration
# ------------------------------------- # -------------------------------------
# MySQL configuration template
mysql_config_template: 'etc/mysql/my.cnf.j2'
# MySQL connection settings. # MySQL connection settings.
mysql_port: "3306" mysql_port: "3306"
mysql_bind_address: '127.0.0.1' mysql_bind_address: '127.0.0.1'

View File

@ -12,7 +12,7 @@
include: install/main.yml include: install/main.yml
- name: TEMPLATE | Deploy configuration - 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 register: config
- name: TEMPLATE | Deploy extra configuration - name: TEMPLATE | Deploy extra configuration