~nka/ansible-role-mariadb

4f9e8fa191ba04350468bb536f902892f6d646c0 — Nicolas KAROLAK 2 months ago e381e68 master v1.0.1
fix tasks order
1 files changed, 9 insertions(+), 9 deletions(-)

M tasks/main.yml
M tasks/main.yml => tasks/main.yml +9 -9
@@ 28,15 28,6 @@
    priv: "*.*:ALL,GRANT"
    host_all: true

- name: allow remote root
  when: mariadb_root_password | d(false)
  mysql_user:
    login_unix_socket: /run/mysqld/mysqld.sock
    user: root
    password: "{{ mariadb_root_password }}"
    priv: "*.*:ALL,GRANT"
    host: "%"

- name: configure local passwordless authentication
  when: mariadb_root_password | d(false)
  copy:


@@ 46,6 37,15 @@
      user = root
      password = {{ mariadb_root_password }}

- name: allow remote root
  when: mariadb_root_password | d(false)
  mysql_user:
    login_unix_socket: /run/mysqld/mysqld.sock
    user: root
    password: "{{ mariadb_root_password }}"
    priv: "*.*:ALL,GRANT"
    host: "%"

- name: configure server settings
  when: mariadb_config_server | d(false)
  notify: restart mariadb