mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 19:30:18 +01:00
Use correct MySQL socket file for Ubuntu.
This commit is contained in:
parent
8299775d52
commit
9899916b4a
5 changed files with 2 additions and 11 deletions
|
@ -46,7 +46,6 @@ The MySQL users and their privileges. A user has the values `name`, `host` (defa
|
|||
mysql_port: "3306"
|
||||
mysql_bind_address: '0.0.0.0'
|
||||
mysql_datadir: /var/lib/mysql
|
||||
mysql_socket: /var/lib/mysql/mysql.sock
|
||||
|
||||
Default MySQL connection configuration.
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ mysql_enablerepo: ""
|
|||
mysql_port: "3306"
|
||||
mysql_bind_address: '0.0.0.0'
|
||||
mysql_datadir: /var/lib/mysql
|
||||
mysql_socket: /var/lib/mysql/mysql.sock
|
||||
|
||||
# Memory settings (default values optimized ~512MB RAM).
|
||||
mysql_key_buffer_size: "256M"
|
||||
|
|
|
@ -10,12 +10,3 @@
|
|||
|
||||
- name: Ensure MySQL is started and enabled on boot.
|
||||
service: "name={{ mysql_daemon }} state=started enabled={{ mysql_enabled_on_startup }}"
|
||||
|
||||
- name: Ensure MySQL socket file has correct permissions.
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
mode: 0755
|
||||
notify: restart mysql
|
||||
with_items:
|
||||
- "{{ mysql_datadir }}"
|
||||
- "{{ mysql_socket }}"
|
||||
|
|
|
@ -5,3 +5,4 @@ mysql_packages:
|
|||
- mysql-common
|
||||
- mysql-server
|
||||
- python-mysqldb
|
||||
mysql_socket: /var/run/mysqld/mysqld.sock
|
||||
|
|
|
@ -5,3 +5,4 @@ mysql_packages:
|
|||
- mysql
|
||||
- mysql-server
|
||||
- MySQL-python
|
||||
mysql_socket: /var/lib/mysql/mysql.sock
|
||||
|
|
Loading…
Reference in a new issue