mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-11-02 04:54:04 +07:00
Add variable to specify the my.cnf template
This commit is contained in:
1 parent
266af48a9b
commit
5977497809
2 files changed
+4
-1
No files matched your search
@@ -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'
|
||||
|
||||
+1
-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