From 8eeb9a2050ab73712295cb9dce2ec0aa82ff6818 Mon Sep 17 00:00:00 2001 From: Svetlin Kalendzhiev Date: Fri, 20 Aug 2021 22:20:11 +0000 Subject: [PATCH] ADHOC [feat]: add support for custom mysql port Currently there is no support for custom mysql ports. Magento can be configured with port as part of the host directive, however this is not valid for operations performed directly on the cli. To solve the issue we are introducing declaration of port when required, this is optional and backwards compatible. --- defaults/main.yml | 1 + tasks/installation.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index b2cfce5..597e627 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -123,6 +123,7 @@ magento_mode: "default" # password: "" # host: "" # name: "" +# port: "" ## The database connections that contain the Magento data that Magento accesses ## See http://devdocs.magento.com/guides/v2.0/config-guide/config/config-php.html diff --git a/tasks/installation.yml b/tasks/installation.yml index a0266b6..5b41d62 100644 --- a/tasks/installation.yml +++ b/tasks/installation.yml @@ -170,7 +170,7 @@ - name: "Check if Magento database exists" shell: cmd: | - mysql --user="{{ magento_config_db.username }}" --password="{{ magento_config_db.password }}" --database="{{ magento_config_db.name }}" --host="{{ magento_config_db.host }}" <