Commit 991456c3 authored by ale's avatar ale
Browse files

Fix mysql grants for remote connections

At some point in recent releases, "%" no longer matches localhost
in new setups, so specify both.
parent d752cdb0
......@@ -220,11 +220,14 @@
- name: Create Spamassassin MySQL user
mysql_user:
name: spamassassin
host: "%"
host: "{{ item }}"
password: "{{ spamassassin_db_password }}"
login_unix_socket: "/var/run/mariadb-mail/server.sock"
priv: "ai_spam.*:ALL"
state: present
loop:
- localhost
- "%"
- name: Create Spamassassin MySQL database
mysql_db:
......@@ -252,11 +255,14 @@
- name: Create Roundcube MySQL user
mysql_user:
name: roundcube
host: "%"
host: "{{ item }}"
password: "{{ roundcube_db_password }}"
login_unix_socket: "/var/run/mariadb-mail/server.sock"
priv: "ai_roundcube.*:ALL"
state: present
loop:
- localhost
- "%"
- name: Create Roundcube MySQL database
mysql_db:
......
......@@ -66,11 +66,14 @@
- name: Create noblogs MySQL user
mysql_user:
name: noblogs
host: "%"
host: "{{ item }}"
password: "{{ noblogs_db_user_password }}"
login_unix_socket: "/var/run/mariadb-noblogs/server.sock"
priv: "*.*:ALL"
state: present
loop:
- localhost
- "%"
# If the database directory for the 'noblogs' db does not exist,
# initialize the db. Only run on the master host.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment