The *nextcloud* role installs Nextcloud from the specified release archive, downloading it to the control machine first if necessary, and configures Apache and PHP-FPM to serve it. The `nextcloud.yml` playbook uses the *cert* role to install the X.509 certificate for the Nextcloud server, sets up Apache HTTPD with the *apache* role, and installs Nextcloud using the *nextcloud* role. The host *cloud0.pyrocufflink.blue* is the Nextcloud server for Pyrocufflink.
13 lines
305 B
YAML
13 lines
305 B
YAML
- name: reload httpd
|
|
service:
|
|
name: httpd
|
|
state: reloaded
|
|
- name: upgrade nextcloud
|
|
become: true
|
|
become_user: apache
|
|
command: php /var/www/html/occ upgrade
|
|
- name: update nextcloud .htaccess
|
|
become: true
|
|
become_user: apache
|
|
command: php /var/www/html/occ maintenance:update:htaccess
|