Changeset - 19b15357124a
[Not reviewed]
0 1 0
Branko Majic (branko) - 7 years ago 2016-11-21 22:26:31
branko@majic.rs
MAR-76: Restart MariaDB immediatelly after defaulting to using UTF-8 character encoding in order to avoid issues with databases and tables being create with wrong encoding. Handler would not help since it runs at the end of current play.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
roles/database_server/tasks/main.yml
Show inline comments
 
@@ -25,7 +25,11 @@
 
- name: Set UTF-8 encoding as default for MariaDB
 
  copy: src="utf8.cnf" dest="/etc/mysql/conf.d/utf8.cnf"
 
        owner=root group=root mode=644
 
  notify: Restart MariaDB
 
  register: mariadb_utf8_configuration
 

	
 
- name: Restart MariaDB in order to use UTF-8 as default character set
 
  service: name=mysql state=restarted
 
  when: mariadb_utf8_configuration.changed
 

	
 
- name: Explicitly run all handlers
 
  include: ../handlers/main.yml
0 comments (0 inline, 0 general)