mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
change default admin user/pw
allow access from all ips and domains
This commit is contained in:
parent
144bb15603
commit
5f663a4b93
3 changed files with 27 additions and 21 deletions
|
@ -15,7 +15,7 @@ nextcloud_dbpassword: nextcloudmysql
|
||||||
nextcloud_user: nextcloud
|
nextcloud_user: nextcloud
|
||||||
nextcloud_user_password: nextcloudmysql
|
nextcloud_user_password: nextcloudmysql
|
||||||
|
|
||||||
nextcloud_admin_user: root
|
nextcloud_admin_user: 'Admin'
|
||||||
nextcloud_admin_password: "{{ mysql_root_password }}"
|
nextcloud_admin_password: 'changeme'
|
||||||
|
|
||||||
nextcloud_required_ip: 10.0.0.0/8 192.168.0.0/16
|
nextcloud_required_ip: 10.0.0.0/8 192.168.0.0/16
|
||||||
|
|
|
@ -42,8 +42,14 @@
|
||||||
--database-name "{{ nextcloud_dbname }}"
|
--database-name "{{ nextcloud_dbname }}"
|
||||||
--database-user "{{ nextcloud_dbuser }}"
|
--database-user "{{ nextcloud_dbuser }}"
|
||||||
--database-pass "{{ nextcloud_dbpassword }}"
|
--database-pass "{{ nextcloud_dbpassword }}"
|
||||||
--admin-user "root"
|
--admin-user "{{ nextcloud_admin_user }}"
|
||||||
--admin-pass "{{ mysql_root_password }}"
|
--admin-pass "{{ nextcloud_admin_password }}"
|
||||||
|
when: nextcloud_enabled and returned.stdout == "false"
|
||||||
|
|
||||||
|
- name: allow access from all hosts and ips
|
||||||
|
command: php '{{ nextcloud_prefix }}/nextcloud/occ' config:system:set trusted_domains 1 --value=*
|
||||||
|
become: true
|
||||||
|
become_user: "{{ apache_user }}"
|
||||||
when: nextcloud_enabled and returned.stdout == "false"
|
when: nextcloud_enabled and returned.stdout == "false"
|
||||||
|
|
||||||
- name: Determine if nextcloud user exists already
|
- name: Determine if nextcloud user exists already
|
||||||
|
|
Loading…
Reference in a new issue