Commit fd3b0383 authored by nono's avatar nono 💻
Browse files

Update database access

parent f5d921fc
......@@ -16,6 +16,7 @@
state: "absent"
login_user: root
login_password: "{{ keycloack_mysql_root_password }}"
config_file: "{{ mysql_credential_file[(ansible_os_family|lower)] | default(omit) }}"
ignore_errors: yes
- name: "Removes the MySQL test database"
......@@ -24,6 +25,7 @@
state: absent
login_user: root
login_password: "{{ keycloack_mysql_root_password }}"
config_file: "{{ mysql_credential_file[(ansible_os_family|lower)] | default(omit) }}"
ignore_errors: yes
- name: "Add Database {{ keycloak_db_name }}."
......@@ -31,6 +33,7 @@
name: "{{ keycloak_db_name }}"
login_user: root
login_password: "{{ keycloack_mysql_root_password }}"
config_file: "{{ mysql_credential_file[(ansible_os_family|lower)] | default(omit) }}"
state: present
- name: "Configure the database user."
......@@ -40,4 +43,5 @@
priv: "{{ keycloak_db_name }}.*:ALL"
login_user: root
login_password: "{{ keycloak_mysql_root_pwd }}"
config_file: "{{ mysql_credential_file[(ansible_os_family|lower)] | default(omit) }}"
state: present
......@@ -48,3 +48,6 @@ keycloak_force_install: false
## Customization
keycloak_profile_preview: false
keycloak_welcome_theme: "keycloak"
mysql_credential_file:
debian: '/etc/mysql/debian.cnf'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment