mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-03-14 11:42:09 +07:00
Add variable to specify the my.cnf template
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user