Handle custom root passwords
parent
357fec1ede
commit
b8d63bb8c7
|
@ -37,6 +37,9 @@
|
||||||
priv: "*.*:RELOAD,LOCK TABLES,REPLICATION CLIENT,PROCESS"
|
priv: "*.*:RELOAD,LOCK TABLES,REPLICATION CLIENT,PROCESS"
|
||||||
host: localhost
|
host: localhost
|
||||||
state: present
|
state: present
|
||||||
|
check_implicit_admin: yes
|
||||||
|
login_user: root
|
||||||
|
login_password: "{{ mariadb_root_password | default(omit) }}"
|
||||||
no_log: "{{ not mariadb_debug_role }}"
|
no_log: "{{ not mariadb_debug_role }}"
|
||||||
when: mariadb_galera_sst_user != ''
|
when: mariadb_galera_sst_user != ''
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,9 @@
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
login_unix_socket: "{{ mariadb_socket }}"
|
login_unix_socket: "{{ mariadb_socket }}"
|
||||||
|
check_implicit_admin: yes
|
||||||
|
login_user: root
|
||||||
|
login_password: "{{ mariadb_root_password | default(omit) }}"
|
||||||
loop: "{{ mariadb_databases }}"
|
loop: "{{ mariadb_databases }}"
|
||||||
when: not mariadb_use_galera or inventory_hostname == mariadb_galera_primary_node
|
when: not mariadb_use_galera or inventory_hostname == mariadb_galera_primary_node
|
||||||
|
|
||||||
|
@ -77,6 +80,9 @@
|
||||||
host_all: "{{ item.host_all | default(omit) }}"
|
host_all: "{{ item.host_all | default(omit) }}"
|
||||||
state: present
|
state: present
|
||||||
login_unix_socket: "{{ mariadb_socket }}"
|
login_unix_socket: "{{ mariadb_socket }}"
|
||||||
|
check_implicit_admin: yes
|
||||||
|
login_user: root
|
||||||
|
login_password: "{{ mariadb_root_password | default(omit) }}"
|
||||||
loop: "{{ mariadb_users }}"
|
loop: "{{ mariadb_users }}"
|
||||||
no_log: "{{ not mariadb_debug_role }}"
|
no_log: "{{ not mariadb_debug_role }}"
|
||||||
when: not mariadb_use_galera or inventory_hostname == mariadb_galera_primary_node
|
when: not mariadb_use_galera or inventory_hostname == mariadb_galera_primary_node
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
host: "{{ item }}"
|
host: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
login_unix_socket: "{{ mariadb_socket }}"
|
login_unix_socket: "{{ mariadb_socket }}"
|
||||||
|
check_implicit_admin: yes
|
||||||
|
login_user: root
|
||||||
|
login_password: "{{ mariadb_root_password | default(omit) }}"
|
||||||
loop:
|
loop:
|
||||||
- "{{ ansible_hostname }}"
|
- "{{ ansible_hostname }}"
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
|
@ -17,3 +20,6 @@
|
||||||
name: test
|
name: test
|
||||||
state: absent
|
state: absent
|
||||||
login_unix_socket: "{{ mariadb_socket }}"
|
login_unix_socket: "{{ mariadb_socket }}"
|
||||||
|
check_implicit_admin: yes
|
||||||
|
login_user: root
|
||||||
|
login_password: "{{ mariadb_root_password | default(omit) }}"
|
||||||
|
|
Loading…
Reference in New Issue