bertvv / ansible-role-mariadb

Install MariaDB on RHEL/CentOS 7 or Fedora.
https://galaxy.ansible.com/bertvv/mariadb/
Other
145 stars 108 forks source link

missing password parameters in commands #50

Open Pepan opened 3 years ago

Pepan commented 3 years ago

in file bertvv.mariadb/tasks/root-password.yml in some sections is missing set of password parameter. I fixed it like this

- name: Check for previously set unix_socket in plugin column
  command: >
    mysql -N -s -S {{ mariadb_socket }} -u root -p{{ mariadb_root_password }} -e
    "SELECT plugin from mysql.user WHERE user = 'root'"
  register: plugin_root_result
  changed_when: plugin_root_result.stdout is search('unix_socket')
  when: root_pwd_check.rc == 0
  tags: mariadb

with -p{{ mariadb_root_password }} ... It is also missing in Remove unix_socket plugin if previously set ...