From ae4d5cfb1e27ce19d2b984d94761435835375dbc Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Thu, 15 Aug 2019 08:38:44 +0000 Subject: [PATCH] use nextcloud_database_host as host name --- tasks/mysql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/mysql.yml b/tasks/mysql.yml index 61858e1..6dce89d 100644 --- a/tasks/mysql.yml +++ b/tasks/mysql.yml @@ -3,7 +3,7 @@ - name: mysql user mysql_user: name: "{{ nextcloud_database_user }}" - host: "{{ (nextcloud_database_host == inventory_hostname) | ternary('localhost',ssh_ip) }}" + host: "{{ (nextcloud_database_host == inventory_hostname) | ternary('localhost',nextcloud_database_host) }}" password: "{{ nextcloud_database_pass }}" priv: "{{nextcloud_database_name}}.*:ALL" delegate_to: "{{ nextcloud_database_host }}"