diff --git a/ansible/roles/mariadb/defaults/main.yml b/ansible/roles/mariadb/defaults/main.yml index 1b822e772d..ff4a641893 100644 --- a/ansible/roles/mariadb/defaults/main.yml +++ b/ansible/roles/mariadb/defaults/main.yml @@ -24,7 +24,7 @@ mariadb_services: - "option mysql-check user haproxy post-41" custom_member_list: "{{ internal_haproxy_members.split(';') }}" mariadb_external_lb: - enabled: "{{ enable_mariadb|bool and enable_external_mariadb_load_balancer|bool }}" + enabled: "{{ enable_external_mariadb_load_balancer|bool }}" mode: "tcp" port: "{{ database_port }}" listen_port: "{{ mariadb_port }}" diff --git a/ansible/site.yml b/ansible/site.yml index 64892da14f..776bc224e5 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -240,7 +240,7 @@ role: mariadb tasks_from: loadbalancer tags: mariadb - when: enable_mariadb | bool + when: enable_mariadb | bool or enable_external_mariadb_load_balancer | bool - include_role: role: masakari tasks_from: loadbalancer