mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
test for nextcloud installed. it fails on second call
This commit is contained in:
parent
6c48586a41
commit
dfe245d280
2 changed files with 10 additions and 2 deletions
|
@ -14,6 +14,6 @@ nextcloud_dbuser: nextcloud
|
|||
nextcloud_dbpassword: nextcloudmysql
|
||||
|
||||
nextcloud_admin_user: root
|
||||
nextcloud_admin_password: {{ mysql_root_password }}
|
||||
nextcloud_admin_password: "{{ mysql_root_password }}"
|
||||
|
||||
nextcloud_required_ip: 10.0.0.0/8 192.168.0.0/16
|
||||
|
|
|
@ -27,6 +27,14 @@
|
|||
- name: Restart apache, so it picks up the new aliases
|
||||
service: name={{ apache_service }} state=restarted
|
||||
|
||||
# the install wizard does not succeed if already installed
|
||||
- name: Determine if nextcloud is installed
|
||||
command: >
|
||||
php {{ nextcloud_prefix }}/nextcloud/occ status |
|
||||
grep installed | wc | cut -f' ' -d1
|
||||
register: returned_count
|
||||
|
||||
|
||||
- name: Run nextcloud initial install wizard
|
||||
shell: >
|
||||
cd {{ nextcloud_prefix }}/nextcloud;
|
||||
|
@ -37,7 +45,7 @@
|
|||
--database-pass "{{ nextcloud_dbpassword }}"
|
||||
--admin-user "root"
|
||||
--admin-pass "{{ mysql_root_password }}"
|
||||
when: nextcloud_enabled
|
||||
when: nextcloud_enabled and returned_count == "0"
|
||||
|
||||
- name: Remove Rewrite URL
|
||||
lineinfile: regexp='overwrite.cli.url'
|
||||
|
|
Loading…
Add table
Reference in a new issue