mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
nextcloud init failed after these lines were removed
This commit is contained in:
parent
1dedccf626
commit
e3abe6cce0
1 changed files with 10 additions and 0 deletions
|
@ -101,6 +101,16 @@
|
||||||
mysql_db: name={{ nextcloud_dbname }}
|
mysql_db: name={{ nextcloud_dbname }}
|
||||||
when: mysql_enabled and nextcloud_enabled
|
when: mysql_enabled and nextcloud_enabled
|
||||||
|
|
||||||
|
- name: Create a user to access the nextcloud database
|
||||||
|
mysql_user: name={{ nextcloud_dbuser }} host={{ item }} password={{ nextcloud_dbpassword }} priv={{ nextcloud_dbname }}.*:ALL,GRANT
|
||||||
|
with_items:
|
||||||
|
- "{{ nextcloud_dbhost }}"
|
||||||
|
- 127.0.0.1
|
||||||
|
- ::1
|
||||||
|
- localhost
|
||||||
|
when: mysql_enabled and nextcloud_enabled
|
||||||
|
|
||||||
|
|
||||||
- name: Restart apache, so it picks up the new aliases
|
- name: Restart apache, so it picks up the new aliases
|
||||||
service: name={{ apache_service }} state=restarted
|
service: name={{ apache_service }} state=restarted
|
||||||
when: not nextcloud_enabled
|
when: not nextcloud_enabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue