Browse Source

use nextcloud_database_host as host name

master
parent
commit
ae4d5cfb1e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tasks/mysql.yml

+ 1
- 1
tasks/mysql.yml View File

@@ -3,7 +3,7 @@
- name: mysql user - name: mysql user
mysql_user: mysql_user:
name: "{{ nextcloud_database_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 }}" password: "{{ nextcloud_database_pass }}"
priv: "{{nextcloud_database_name}}.*:ALL" priv: "{{nextcloud_database_name}}.*:ALL"
delegate_to: "{{ nextcloud_database_host }}" delegate_to: "{{ nextcloud_database_host }}"


Loading…
Cancel
Save