Use correct MySQL socket file for Ubuntu.

This commit is contained in:
Jeff Geerling 2015-01-08 18:12:30 -06:00
parent 8299775d52
commit 9899916b4a
5 changed files with 2 additions and 11 deletions

View file

@ -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.

View file

@ -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"

View file

@ -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 }}"

View file

@ -5,3 +5,4 @@ mysql_packages:
- mysql-common
- mysql-server
- python-mysqldb
mysql_socket: /var/run/mysqld/mysqld.sock

View file

@ -5,3 +5,4 @@ mysql_packages:
- mysql
- mysql-server
- MySQL-python
mysql_socket: /var/lib/mysql/mysql.sock