Handle custom root passwords
parent
357fec1ede
commit
b8d63bb8c7
|
@ -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 != ''
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) }}"
|
||||
|
|
Loading…
Reference in New Issue