mirror of
https://github.com/frappe/bench.git
synced 2025-01-26 08:08:23 +00:00
ubuntu specific changes
This commit is contained in:
parent
8e1a73ffb2
commit
fc65f1d9a0
@ -14,6 +14,16 @@
|
|||||||
stat: path="{{ bench_path }}/sites/site1.local"
|
stat: path="{{ bench_path }}/sites/site1.local"
|
||||||
register: site_folder
|
register: site_folder
|
||||||
|
|
||||||
|
- name: Add additional conf for MariaDB 10.2 in mariadb.conf.d
|
||||||
|
blockinfile:
|
||||||
|
path: /etc/mysql/conf.d/settings.cnf
|
||||||
|
block: |
|
||||||
|
# Import all .cnf files from configuration directory
|
||||||
|
!includedir /etc/mysql/mariadb.conf.d/
|
||||||
|
become: yes
|
||||||
|
become_user: root
|
||||||
|
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian'
|
||||||
|
|
||||||
- name: Add additional conf for MariaDB 10.2 in mariadb.conf.d
|
- name: Add additional conf for MariaDB 10.2 in mariadb.conf.d
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/mysql/mariadb.conf.d/erpnext.cnf
|
path: /etc/mysql/mariadb.conf.d/erpnext.cnf
|
||||||
@ -24,6 +34,7 @@
|
|||||||
create: yes
|
create: yes
|
||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
|
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian'
|
||||||
|
|
||||||
- name: restart mysql
|
- name: restart mysql
|
||||||
service: name=mysql state=restarted
|
service: name=mysql state=restarted
|
||||||
|
@ -59,6 +59,3 @@ slow-query-log-file = /var/lib/mysql/mysql-slow.log
|
|||||||
|
|
||||||
[mysql]
|
[mysql]
|
||||||
default-character-set = utf8mb4
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
# Import all .cnf files from configuration directory
|
|
||||||
!includedir /etc/mysql/mariadb.conf.d/
|
|
Loading…
x
Reference in New Issue
Block a user