Commit 556ae757 authored by Daniel Paufler's avatar Daniel Paufler
Browse files

adjust handler to http-var

parent a31394e1
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
- { regexp: 'opcache.save_comments', line: 'opcache.save_comments=1' } - { regexp: 'opcache.save_comments', line: 'opcache.save_comments=1' }
- { regexp: 'opcache.revalidate_freq', line: 'opcache.revalidate_freq=1' } - { regexp: 'opcache.revalidate_freq', line: 'opcache.revalidate_freq=1' }
# validate: "/usr/sbin/{{ php_bin }} -t #%s" # validate: "/usr/sbin/{{ php_bin }} -t #%s"
notify: reload apache2 notify: reload http
- name: "[APACHE] - Required Apache2 modules are enabled" - name: "[APACHE] - Required Apache2 modules are enabled"
apache2_module: state=present name={{ item }} apache2_module: state=present name={{ item }}
...@@ -33,24 +33,24 @@ ...@@ -33,24 +33,24 @@
- env - env
- dir - dir
- mime - mime
notify: restart apache2 notify: restart http
- name: "[APACHE] - Ssl Apache2 module is enabled" - name: "[APACHE] - Ssl Apache2 module is enabled"
apache2_module: state=present name={{ item }} apache2_module: state=present name={{ item }}
with_items: with_items:
- ssl - ssl
when: (nextcloud_install_tls | bool) when: (nextcloud_install_tls | bool)
notify: restart apache2 notify: restart http
- name: "[APACHE] - generate Nextcloud configuration for apache" - name: "[APACHE] - generate Nextcloud configuration for apache"
template: template:
dest: /etc/apache2/sites-available/nc_{{ nextcloud_instance_name }}.conf dest: /etc/apache2/sites-available/nc_{{ nextcloud_instance_name }}.conf
src: "{{ nextcloud_websrv_template }}" src: "{{ nextcloud_websrv_template }}"
notify: reload apache2 notify: reload http
- name: "[APACHE] - Enable Nextcloud site in apache conf" - name: "[APACHE] - Enable Nextcloud site in apache conf"
file: file:
path: /etc/apache2/sites-enabled/nc_{{ nextcloud_instance_name }}.conf path: /etc/apache2/sites-enabled/nc_{{ nextcloud_instance_name }}.conf
src: /etc/apache2/sites-available/nc_{{ nextcloud_instance_name }}.conf src: /etc/apache2/sites-available/nc_{{ nextcloud_instance_name }}.conf
state: link state: link
notify: reload apache2 notify: reload http
...@@ -64,17 +64,17 @@ ...@@ -64,17 +64,17 @@
path: /etc/nginx/sites-enabled/php_handler path: /etc/nginx/sites-enabled/php_handler
src: /etc/nginx/sites-available/php_handler.cnf src: /etc/nginx/sites-available/php_handler.cnf
state: link state: link
notify: reload nginx notify: reload http
- name: "[NGINX] - generate Nextcloud configuration for nginx" - name: "[NGINX] - generate Nextcloud configuration for nginx"
template: template:
dest: /etc/nginx/sites-available/nc_{{ nextcloud_instance_name }}.cnf dest: /etc/nginx/sites-available/nc_{{ nextcloud_instance_name }}.cnf
src: "{{ nextcloud_websrv_template }}" src: "{{ nextcloud_websrv_template }}"
notify: reload nginx notify: reload http
- name: "[NGINX] - Enable Nextcloud in nginx conf" - name: "[NGINX] - Enable Nextcloud in nginx conf"
file: file:
path: /etc/nginx/sites-enabled/nc_{{ nextcloud_instance_name }} path: /etc/nginx/sites-enabled/nc_{{ nextcloud_instance_name }}
src: /etc/nginx/sites-available/nc_{{ nextcloud_instance_name }}.cnf src: /etc/nginx/sites-available/nc_{{ nextcloud_instance_name }}.cnf
state: link state: link
notify: reload nginx notify: reload http
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment