Handle custom root passwords

pull/45/head
Steven Wheeler 2022-05-11 16:24:52 -05:00
parent 357fec1ede
commit b8d63bb8c7
No known key found for this signature in database
GPG Key ID: FD77D8D821860ED3
3 changed files with 15 additions and 0 deletions

View File

@ -37,6 +37,9 @@
priv: "*.*:RELOAD,LOCK TABLES,REPLICATION CLIENT,PROCESS"
host: localhost
state: present
check_implicit_admin: yes
login_user: root
login_password: "{{ mariadb_root_password | default(omit) }}"
no_log: "{{ not mariadb_debug_role }}"
when: mariadb_galera_sst_user != ''

View File

@ -65,6 +65,9 @@
name: "{{ item }}"
state: present
login_unix_socket: "{{ mariadb_socket }}"
check_implicit_admin: yes
login_user: root
login_password: "{{ mariadb_root_password | default(omit) }}"
loop: "{{ mariadb_databases }}"
when: not mariadb_use_galera or inventory_hostname == mariadb_galera_primary_node
@ -77,6 +80,9 @@
host_all: "{{ item.host_all | default(omit) }}"
state: present
login_unix_socket: "{{ mariadb_socket }}"
check_implicit_admin: yes
login_user: root
login_password: "{{ mariadb_root_password | default(omit) }}"
loop: "{{ mariadb_users }}"
no_log: "{{ not mariadb_debug_role }}"
when: not mariadb_use_galera or inventory_hostname == mariadb_galera_primary_node

View File

@ -6,6 +6,9 @@
host: "{{ item }}"
state: absent
login_unix_socket: "{{ mariadb_socket }}"
check_implicit_admin: yes
login_user: root
login_password: "{{ mariadb_root_password | default(omit) }}"
loop:
- "{{ ansible_hostname }}"
- 127.0.0.1
@ -17,3 +20,6 @@
name: test
state: absent
login_unix_socket: "{{ mariadb_socket }}"
check_implicit_admin: yes
login_user: root
login_password: "{{ mariadb_root_password | default(omit) }}"