mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
add in the nextcloud from old iiab/pr3
This commit is contained in:
parent
13ea3015f9
commit
9376910f7f
7 changed files with 244 additions and 0 deletions
35
roles/nextcloud/tasks/nextcloud_enabled.yml
Normal file
35
roles/nextcloud/tasks/nextcloud_enabled.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# This should go in computed_network.yml, but here for now
|
||||
|
||||
- name: Compute nextcloud listen ip addr for nextcloud.conf
|
||||
set_fact:
|
||||
nextcloud_required_ip: "{{ ansible_default_ipv4.network }}/{{ ansible_default_ipv4.netmask }}"
|
||||
when: ansible_default_ipv4.network is defined
|
||||
|
||||
- name: Enable nextcloud by copying template to httpd config
|
||||
template: src=nextcloud.conf.j2
|
||||
dest=/etc/{{ apache_config_dir }}/nextcloud.conf
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
|
||||
- name: Enable nextcloud
|
||||
file: path=/etc/apache2/sites-enabled/nextcloud.conf
|
||||
src=/etc/apache2/sites-available/nextcloud.conf
|
||||
state=link
|
||||
when: nextcloud_enabled and is_debian
|
||||
|
||||
- name: Disable nextcloud
|
||||
file: path=/etc/apache2/sites-enabled/nextcloud.conf
|
||||
state=absent
|
||||
when: not nextcloud_enabled and is_debian
|
||||
|
||||
- name: Restart apache, so it picks up the new aliases
|
||||
service: name={{ apache_service }} state=restarted
|
||||
|
||||
- name: Run nextcloud initial install wizard
|
||||
shell: curl http://{{ xsce_hostname }}{{ nextcloud_url }}/index.php
|
||||
|
||||
- name: Remove Rewrite URL
|
||||
lineinfile: regexp='overwrite.cli.url'
|
||||
state=absent
|
||||
dest="{{ nextcloud_prefix }}/nextcloud/config/config.php"
|
||||
Loading…
Add table
Add a link
Reference in a new issue