mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-19 15:54:23 +01:00
Merge pull request #27 from BlackMesh/optional-mycnf-force
Add option to disable continued management of my.cnf.
This commit is contained in:
@@ -24,6 +24,10 @@ The MySQL root user account password.
|
||||
|
||||
Whether MySQL should be enabled on startup.
|
||||
|
||||
overwrite_global_mycnf: yes
|
||||
|
||||
Whether the global my.cnf should be overwritten each time ansible runs. "no" will only create the file if it doesn't exist.
|
||||
|
||||
mysql_databases: []
|
||||
|
||||
The MySQL databases to create. A database has the values `name`, `encoding` (defaults to `utf8`), `collation` (defaults to `utf8_general_ci`) and `replicate` (defaults to `1`, only used if replication is configured). The formats of these are the same as in the `mysql_db` module.
|
||||
|
||||
@@ -5,6 +5,9 @@ mysql_root_password: root
|
||||
|
||||
mysql_enabled_on_startup: yes
|
||||
|
||||
# update my.cnf. each time role is run? yes | no
|
||||
overwrite_global_mycnf: yes
|
||||
|
||||
# Pass in a comma-separated list of repos to use (e.g. "remi,epel"). Used only
|
||||
# for RedHat systems (and derivatives).
|
||||
mysql_enablerepo: ""
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
force: "{{ overwrite_global_mycnf }}"
|
||||
notify: restart mysql
|
||||
|
||||
- name: Ensure MySQL is started and enabled on boot.
|
||||
|
||||
Reference in New Issue
Block a user