1
0
Fork 0
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:
Tim Moody 2017-06-26 15:24:58 -04:00 committed by georgejhunt
parent 144bb15603
commit 5f663a4b93
3 changed files with 27 additions and 21 deletions

View file

@ -15,7 +15,7 @@ nextcloud_dbpassword: nextcloudmysql
nextcloud_user: nextcloud
nextcloud_user_password: nextcloudmysql
nextcloud_admin_user: root
nextcloud_admin_password: "{{ mysql_root_password }}"
nextcloud_admin_user: 'Admin'
nextcloud_admin_password: 'changeme'
nextcloud_required_ip: 10.0.0.0/8 192.168.0.0/16

View file

@ -42,8 +42,14 @@
--database-name "{{ nextcloud_dbname }}"
--database-user "{{ nextcloud_dbuser }}"
--database-pass "{{ nextcloud_dbpassword }}"
--admin-user "root"
--admin-pass "{{ mysql_root_password }}"
--admin-user "{{ nextcloud_admin_user }}"
--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"
- name: Determine if nextcloud user exists already