-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- determine appropriate setup procedure depending on whether nextcloud is already installed or not, installed version and current role version - use ansible local fact file to store nextcloud installed version - use temporary extraction directory and replace the old copy with the new one instead of unpacking directly into the documentroot - installation is now idempotent - ensure correct/restrictive permissions are set - nextcloud: move apache configuration steps to separate file, add automatic virtualhost configuration for nextcloud, group previous CSP settings in vhost configuration file - reorder setup procedure (setup apache last) - enable additional php modules https://docs.nextcloud.com/server/16/admin_manual/installation/source_installation.html#apache-web-server-configuration - Note: 'become' is not a valid attribute for a TaskInclude, use include - https://docs.ansible.com/ansible/latest/modules/include_module.html - reload apache instead of restarting when possible - fix Module did not set no_log for update_password (mysql_user) - update documentation, add screenshots - use ansible-vault to manage secret variables by default - templatize nextcloud domain name/install directory/full URL - make app enable/disable task idempotent - nextcloud/server#19514, nextcloud/server#17789 - require manual configuration of nextcloud FQDN - update calendar app to 2.0.2 - https://docs.nextcloud.com/server/16/admin_manual/maintenance/manual_upgrade.html
- Loading branch information
Showing
9 changed files
with
253 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
|
||
- name: enable apache2 modules | ||
command: a2enmod {{ item }} | ||
with_items: | ||
- 'rewrite' | ||
- 'headers' | ||
- 'env' | ||
- 'dir' | ||
- 'mime' | ||
args: | ||
creates: "/etc/apache2/mods-enabled/{{ item }}.load" | ||
notify: reload apache | ||
|
||
- name: copy apache2 virtualhost configuration | ||
template: | ||
src: etc_apache2_sites-available_nextcloud.conf.j2 | ||
dest: /etc/apache2/sites-available/nextcloud.conf | ||
notify: reload apache | ||
|
||
- name: enable apache2 virtualhost | ||
command: a2ensite nextcloud | ||
args: | ||
creates: "/etc/apache2/sites-enabled/nextcloud.conf" | ||
notify: restart apache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,8 @@ | |
become: yes | ||
tags: | ||
- nextcloud | ||
|
||
- include: apache.yml | ||
become: yes | ||
tags: | ||
- nextcloud |
Oops, something went wrong.