use mariadb service instead of mysqld
mysqld.service is symlink to mariadb.service and systemctl enable can not handle symlinks
This commit is contained in:
parent
0a8c78bedb
commit
39eb8e0e57
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@
|
|||
- lineinfile: dest=/etc/my.cnf regexp="^collation-server" insertafter="^\[mysqld\]" line="collation-server = utf8_general_ci"
|
||||
- lineinfile: dest=/etc/my.cnf regexp="^init-connect" insertafter="^\[mysqld\]" line="init-connect = 'SET NAMES utf8'"
|
||||
- lineinfile: dest=/etc/my.cnf regexp="^character-set-server " insertafter="^\[mysqld\]" line="character-set-server = utf8"
|
||||
- service: name=mysqld state=started enabled=yes
|
||||
- service: name=mariadb state=started enabled=yes
|
||||
# 'localhost' needs to be the last item for idempotency, see
|
||||
# http://ansible.cc/docs/modules.html#mysql-user
|
||||
- name: update mysql root password for localhost before setting .my.cnf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue