Browse Source

handle database on localhost

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

+ 1
- 1
tasks/install.yml View File

@@ -25,7 +25,7 @@
--admin-user "{{ nextcloud_admin_user }}" --admin-user "{{ nextcloud_admin_user }}"
--admin-pass "{{ nextcloud_admin_pass }}" --admin-pass "{{ nextcloud_admin_pass }}"
--database "{{ nextcloud_database_type }}" --database "{{ nextcloud_database_type }}"
--database-host "{{ nextcloud_database_host }}"
--database-host "{{ nextcloud_database_host == inventory_hostname | ternary('localhost',nextcloud_database_host) }}"
--database-name "{{ nextcloud_database_name }}" --database-name "{{ nextcloud_database_name }}"
--database-user "{{ nextcloud_database_user }}" --database-user "{{ nextcloud_database_user }}"
--database-pass "{{ nextcloud_database_pass }}" --database-pass "{{ nextcloud_database_pass }}"


+ 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: "{{ ssh_ip }}"
host: "{{ nextcloud_database_host == inventory_hostname | ternary('localhost',ssh_ip) }}"
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